FileIOPermissionAttribute.PathDiscovery 属性

定义

获取或设置要向其授予路径发现的文件或目录。

public:
 property System::String ^ PathDiscovery { System::String ^ get(); void set(System::String ^ value); };
public string PathDiscovery { get; set; }
member this.PathDiscovery : string with get, set
Public Property PathDiscovery As String

属性值

文件或目录的绝对路径。

注解

路径发现控制对路径本身中信息的访问。 这有助于保护路径中的敏感信息,例如用户名,以及有关路径中显示的目录结构的信息。 此值不授予对路径所表示的文件或文件夹的访问权限。

注释

出于性能原因, PathDiscovery 应仅向目录授予,而不是授予文件。 例如, PathDiscovery 应向 C:\test 和 C:\test\等路径授予权限,而不是授予 C:\test\example.txt等文件的权限。

此属性设置单个文件或目录的访问权限。 使用其他属性指定其他文件和目录。

适用于