TrustLevel.PolicyFile Eigenschap

Definitie

Hiermee wordt de verwijzing naar het configuratiebestand opgehaald of ingesteld die de beveiligingsbeleidsinstellingen voor het benoemde beveiligingsniveau bevat.

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

Waarde van eigenschap

De verwijzing naar het configuratiebestand met de beveiligingsbeleidsinstellingen voor het bijbehorende beveiligingsniveau.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de PolicyFile eigenschap gebruikt. Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de TrustLevel klasse.

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

Van toepassing op

Zie ook