Aracılığıyla paylaş


TrustLevel.PolicyFile Özellik

Tanım

Adlandırılmış güvenlik düzeyi için güvenlik ilkesi ayarlarını içeren yapılandırma dosyası başvuruyu alır veya ayarlar.

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

Özellik Değeri

String

İlişkili güvenlik düzeyi için güvenlik ilkesi ayarlarını içeren yapılandırma dosyası başvurusu.

Öznitelikler

Örnekler

Aşağıdaki kod örneği özelliğinin nasıl kullanılacağını PolicyFile gösterir. Bu kod örneği, sınıfı için TrustLevel sağlanan daha büyük bir örneğin parçasıdır.

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

Şunlara uygulanır

Ayrıca bkz.