MessagePartSpecification.Union(MessagePartSpecification) 方法

定义

合并两个消息部分的规范。

public:
 void Union(System::ServiceModel::Security::MessagePartSpecification ^ specification);
public:
 void Union(System::ServiceModel::Security::MessagePartSpecification ^ other);
public void Union (System.ServiceModel.Security.MessagePartSpecification specification);
public void Union (System.ServiceModel.Security.MessagePartSpecification other);
member this.Union : System.ServiceModel.Security.MessagePartSpecification -> unit
member this.Union : System.ServiceModel.Security.MessagePartSpecification -> unit
Public Sub Union (specification As MessagePartSpecification)
Public Sub Union (other As MessagePartSpecification)

参数

specificationother
MessagePartSpecification

要合并的 MessagePartSpecification

例外

specificationnull

注解

调用 Union 方法后,MessagePartSpecification 保存这两个规范的所有标头信息,并且 IsBodyIncluded 属性设置为这两个规范的逻辑或。

适用于