MessageProperties.ContainsKey(String) MessageProperties.ContainsKey(String) MessageProperties.ContainsKey(String) MessageProperties.ContainsKey(String) Method

定義

判斷 MessageProperties 是否包含特定名稱、索引鍵或識別項。Determines whether the MessageProperties contains a specific name, key, or identifier.

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 String String String

要在MessageProperties中找到的名稱、 索引鍵或識別項。The name, key, or identifier to locate in the MessageProperties.

傳回

如果 true 包含具有指定 MessageProperties 的項目,則為 name,否則為 falsetrue if the MessageProperties contains an element with the specified name; otherwise, false.

實作

適用於