TrustLevel.PolicyFile Egenskap
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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)