MessageProperties.Remove(String) 方法
定义
从 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
要删除的元素的名称。The name of the element to remove.
返回
如果 MessageProperties 包含具有指定 name 的元素且可移除,则为 true;否则为 false。true if the MessageProperties contains an element with the specified name and can be removed; otherwise, false.