DenyAccess Method

 Object: File
 Syntax: DenyAccess ([in] AccountName, [in] Permissions)
 Description: This method creates an Access Control Entry (ACE) for the current file that denies specific access rights.

The AccountName must resolve to a valid NT account in the domain.

The Permissions can have any of the following values or any logical combination of the following values:

Constant Value Description
saNoAccess 1 All Access is denied.
saRead 2 The file can be read.
saWrite 4 The file can be written.
saExecute 8 The file can be executed.
saDelete 16 The file can be deleted.
saPermissions 32 Permissions on the file can be changed.
saOwner 64 Allows taking ownership of the file.
saFull 126 Allows all of the above permissions (except NoAccess).

These constants can be found using the IIS 4 or later TypeLibrary feature, or by viewing the vbFileManagerInclude.asp file contained in the .\Samples\FileManagerSamples directory.

 

Previous Page Next Page