IFileAccessControlAllow Method |
Determine the correct file path or reject it.
Namespace: WinWrap.Basic.ServerAssembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntaxvoid Allow(
string action,
string baseName,
ref string name
)
Sub Allow (
action As String,
baseName As String,
ByRef name As String
)
void Allow(
String^ action,
String^ baseName,
String^% name
)
Parameters
- action String
-
The action about to be taken upon the file.
- baseName String
-
This is the name of the macro requesting the action.
- name String
-
The name of the file being accessed.
Change the name to implement sandboxing as desired by the host application.
Remarks
Implement this method to adjust the location of the file.
Throw an exception if access is to be denied.
These are the possible actions:
|
Action
|
WWB-COM
|
WWB.NET
|
|---|
| Copy:From | FileCopy | FileCopy |
| Copy:To | FileCopy | FileCopy |
| CreateDirectory | MkDir | MkDir |
| Delete | Kill | Kill |
| DeleteDirectory | RmDir | RmDir |
| FileDateTime | FileDateTime | FileDateTime |
| GetAttr | GetAttr | GetAttr |
| GetDirectory | Dir | Dir |
| Open:Read | Open | FileOpen |
| Open:ReadWrite | Open | FileOpen |
| Open:Write | Open | FileOpen |
| Rename:From | Name | Rename |
| Rename:To | Name | Rename |
| SetAttr | SetAttr | SetAttr |
Example
IFileAccessControl implementation which uses the normal file system.
public void Allow(string action, string baseName, ref string name)
{
}Sub Allow(ByVal action As String, ByVal baseName, ByRef name As String)
End Sub
No code example is currently available or this language may not be supported.
See Also