MessageProperties.ContainsKey(String) 方法
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定 MessageProperties 是否包含一个特定的名称、键或标识符。
public:
virtual bool ContainsKey(System::String ^ name);
C#
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中要定位的名称、键或标识符。
如果 true
包含具有指定 MessageProperties 的元素,则为 name
;否则为 false
。
产品 | 版本 |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |