WSTrustChannelFactory.TrustVersion 属性

定义

获取或设置 WS-Trust 的版本,其中,此工厂创建的通道用于序列化消息。Gets or sets the version of WS-Trust that channels created by this factory use for serializing messages.

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

属性值

TrustVersion

WS-Trust 的版本,其中,此工厂创建的通道用于序列化消息。The version of WS-Trust that channels created by this factory use for serializing messages.

注解

如果未设置此属性,则通过此工厂创建的通道将 TrustVersionSecurityBindingElement 通道工厂的终结点对象上找到的任何终结点(如果存在)上使用该集。If this property is not set, channels created by this factory will use the TrustVersion set on any SecurityBindingElement found on the channel factory's Endpoint object if one exists.

创建通道后,不能更改此属性的值。You cannot change the value of this property after a channel has been created.

适用于