MessageProperties.Remove(String) MessageProperties.Remove(String) MessageProperties.Remove(String) MessageProperties.Remove(String) Method

定義

MessageProperties 中移除具有指定之名稱的項目。Removes the element with the specified name from the MessageProperties.

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

參數

name
String String String String

要移除之項目的名稱。The name of the element to remove.

傳回

如果 MessageProperties 包含具有指定之 name 而且是可移除的項目,則為 true,否則為 falsetrue if the MessageProperties contains an element with the specified name and can be removed; otherwise, false.

實作

適用於