MessageProperties.ContainsKey(String) 方法

定义

确定 MessageProperties 是否包含一个特定的名称、键或标识符。

public:
 virtual bool ContainsKey(System::String ^ name);
public bool ContainsKey (string name);
abstract member ContainsKey : string -> bool
override this.ContainsKey : string -> bool
Public Function ContainsKey (name As String) As Boolean

参数

name
String

MessageProperties中要定位的名称、键或标识符。

返回

Boolean

如果 true 包含具有指定 MessageProperties 的元素,则为 name;否则为 false

实现

适用于