Click or drag to resize

FileAccessControlAllow Method

Determine the correct file path or reject it.

Namespace: WinWrap.Basic.Server
Assembly: WinWrap.Basic.Server (in WinWrap.Basic.Server.dll)
Syntax
public void Allow(
	string action,
	string baseName,
	ref 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.

Implements

IFileAccessControlAllow(String, String, String)
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:FromFileCopyFileCopy
Copy:ToFileCopyFileCopy
CreateDirectoryMkDirMkDir
DeleteKillKill
DeleteDirectoryRmDirRmDir
FileDateTimeFileDateTimeFileDateTime
GetAttrGetAttrGetAttr
GetDirectoryDirDir
Open:ReadOpenFileOpen
Open:ReadWriteOpenFileOpen
Open:WriteOpenFileOpen
Rename:FromNameRename
Rename:ToNameRename
SetAttrSetAttrSetAttr

Example
IFileAccessControl implementation which uses the normal file system.
public void Allow(string action, string baseName, ref string name)
{
}
See Also