TrustLevel.PolicyFile Egenskap

Definition

Hämtar eller anger referensen för konfigurationsfilen som innehåller säkerhetsprincipinställningarna för den namngivna säkerhetsnivån.

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

Egenskapsvärde

Referensen för konfigurationsfilen som innehåller säkerhetsprincipinställningarna för den associerade säkerhetsnivån.

Attribut

Exempel

Följande kodexempel visar hur du använder egenskapen PolicyFile . Det här kodexemplet är en del av ett större exempel för TrustLevel klassen.

// 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)

Gäller för

Se även