OperationInfo.ProtectionLevel 属性

定义

获取或设置操作的 ProtectionLevel

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

属性值

Nullable<ProtectionLevel>

操作使用的 ProtectionLevel 对象。

示例

下面的示例演示如何访问 ProtectionLevel 属性。

OperationInfo info = new OperationInfo();
info.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign;
Dim info As New OperationInfo()
info.ProtectionLevel = System.Net.Security.ProtectionLevel.EncryptAndSign

注解

默认值为 null,表示未设置保护级别。

适用于