TrustLevel.PolicyFile 属性

定义

获取或设置配置文件引用,其中包含命名安全级别的安全策略设置。

public:
 property System::String ^ PolicyFile { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("policyFile", DefaultValue="internal", IsRequired=true)]
public string PolicyFile { get; set; }
[<System.Configuration.ConfigurationProperty("policyFile", DefaultValue="internal", IsRequired=true)>]
member this.PolicyFile : string with get, set
Public Property PolicyFile As String

属性值

包含关联安全级别的安全策略设置的配置文件引用。

属性

示例

下面的代码示例演示如何使用该 PolicyFile 属性。 该代码示例是 TrustLevel 类中的一个较大示例的一部分。

// Get the PolicyFile of the TrustLevel object.
Console.WriteLine("PolicyFile: {0}", TrustLevel2.PolicyFile);
' Get the PolicyFile of the TrustLevel object.
Console.WriteLine("PolicyFile: {0}", TrustLevel2.PolicyFile)

适用于

另请参阅