Mono Class Library: System.Security.Permissions.FileIOPermissionAttribute Overview | Members

System.Security.Permissions.FileIOPermissionAttribute.PathDiscovery Property

Gets or sets the name of a file or directory for which path discovery access is secured.

public string PathDiscovery { set; get; }

Value

A string containing the absolute path of the file or directory for which access to the contents of the path is secured.

Exceptions

TypeReason
ArgumentExceptionThe path information specified for a set operation contains invalid characters or wild card specifiers.

Remarks

Note:

This property sets path discovery access for a single file or directory; use additional System.Security.Permissions.FileIOPermissionAttribute attributes to specify additional files and directories.

Path discovery controls access to the information in the path itself. This protects sensitive information in the path, such as user names, as well as information about the directory structure revealed in the path. This value does not secure access to files or folders represented by the path.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0