Bagikan melalui


TrustLevel.PolicyFile Properti

Definisi

Mendapatkan atau mengatur referensi file konfigurasi yang berisi pengaturan kebijakan keamanan untuk tingkat keamanan bernama.

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

Nilai Properti

Referensi file konfigurasi yang berisi pengaturan kebijakan keamanan untuk tingkat keamanan terkait.

Atribut

Contoh

Contoh kode berikut menunjukkan cara menggunakan PolicyFile properti . Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk TrustLevel kelas .

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

Berlaku untuk

Lihat juga