Share via


ContractDescription.ProtectionLevel Proprietà

Definizione

Ottiene o imposta il livello di protezione associato al contratto.

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

Valore della proprietà

ProtectionLevel

Oggetto ProtectionLevel per l'operazione.

Esempio

ProtectionLevel protectionLevel = cd.ProtectionLevel;
Console.WriteLine("\tProtection Level: {0}", protectionLevel.ToString());
Dim protectionLevel As ProtectionLevel = cd.ProtectionLevel
Console.WriteLine(Constants.vbTab & "Protection Level: {0}", protectionLevel.ToString())

Commenti

Quando si imposta la proprietà ProtectionLevel, la proprietà HasProtectionLevel viene impostata su true.

Si applica a