Message.OnGetBodyAttribute(String, String) Message.OnGetBodyAttribute(String, String) Message.OnGetBodyAttribute(String, String) Message.OnGetBodyAttribute(String, String) Method

定义

检索消息正文的属性时调用。Called when the attributes of the message body is retrieved.

protected:
 virtual System::String ^ OnGetBodyAttribute(System::String ^ localName, System::String ^ ns);
protected virtual string OnGetBodyAttribute (string localName, string ns);
abstract member OnGetBodyAttribute : string * string -> string
override this.OnGetBodyAttribute : string * string -> string
Protected Overridable Function OnGetBodyAttribute (localName As String, ns As String) As String

参数

localName
String String String String

XML 节点的本地名称。The local name of the XML node.

与此成员对应的元素的名称。The name of the element that corresponds to this member. 此字符串必须是有效的 XML 元素名称。This string must be a valid XML element name.

ns
String String String String

此 XML 元素所属的命名空间。The namespace to which this XML element belongs.

与此成员对应的元素的命名空间 URI。The namespace URI of the element that corresponds to this member. 此系统不验证传输地址以外的任何 URI。The system does not validate any URIs other than transport addresses.

返回

消息正文的属性。The attributes of the message body.

适用于