ContractDescription.ProtectionLevel Egenskap

Definition

Hämtar eller anger den säkerhetsskyddsnivå som är associerad med kontraktet.

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

Egenskapsvärde

För ProtectionLevel åtgärden.

Exempel

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

Kommentarer

När har ProtectionLevel angetts är egenskapen HasProtectionLevel inställd på true.

Gäller för