Bagikan melalui


OperationDescription.ProtectionLevel Properti

Definisi

Mendapatkan atau mengatur tingkat perlindungan untuk operasi.

public:
 property System::Net::Security::ProtectionLevel ProtectionLevel { System::Net::Security::ProtectionLevel get(); void set(System::Net::Security::ProtectionLevel value); };
public System.Net.Security.ProtectionLevel ProtectionLevel { get; set; }
member this.ProtectionLevel : System.Net.Security.ProtectionLevel with get, set
Public Property ProtectionLevel As ProtectionLevel

Nilai Properti

Untuk ProtectionLevel operasi.

Keterangan

Properti ProtectionLevel mengontrol apakah pesan operasi harus dienkripsi, ditandatangani, atau keduanya. Nilai yang ditetapkan di sini adalah nilai default untuk semua pesan yang ditentukan untuk operasi ini kecuali cakupan yang lebih sempit mengesampingkan nilai ini.

ProtectionLevel ProtectionLevel sesuai dengan properti dalam model pemrograman Windows Communication Foundation (WCF).

ProtectionLevel Ketika diatur, HasProtectionLevel properti diatur ke true.

Berlaku untuk