TrustLevel.PolicyFile Properti
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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)