UnderstoodHeaders.Contains(MessageHeaderInfo) 方法

定义

验证指定的 MessageHeaderInfo 是否在此集合中。Verifies whether the specified MessageHeaderInfo is present in this collection.

public:
 bool Contains(System::ServiceModel::Channels::MessageHeaderInfo ^ headerInfo);
public:
 bool Contains(System::ServiceModel::Channels::MessageHeaderInfo ^ header);
public bool Contains (System.ServiceModel.Channels.MessageHeaderInfo headerInfo);
public bool Contains (System.ServiceModel.Channels.MessageHeaderInfo header);
member this.Contains : System.ServiceModel.Channels.MessageHeaderInfo -> bool
member this.Contains : System.ServiceModel.Channels.MessageHeaderInfo -> bool
Public Function Contains (headerInfo As MessageHeaderInfo) As Boolean
Public Function Contains (header As MessageHeaderInfo) As Boolean

参数

headerInfoheader
MessageHeaderInfo

包含有关消息头的其他信息。Contains additional information regarding a message header.

返回

Boolean

如果指定的 true 位于此集合中,则为 MessageHeaderInfo;否则为 falsetrue if the specified MessageHeaderInfo is present in this collection; otherwise, false.

适用于