語言

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的名稱、鍵或識別碼。

傳回

true若 包含MessageProperties一個元素,且 name;否則,。 false

實作

適用於