UnderstoodHeaders.Contains(MessageHeaderInfo) 方法

定义

验证指定的 MessageHeaderInfo 是否在此集合中。

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

包含有关消息头的其他信息。

返回

Boolean

如果指定的 true 位于此集合中,则为 MessageHeaderInfo;否则为 false

适用于