MessagePart::Element Property

 

Gets or sets the name of the XML element that corresponds to the current MessagePart.

Namespace:   System.Web.Services.Description
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
property XmlQualifiedName^ Element {
	XmlQualifiedName^ get();
	void set(XmlQualifiedName^ value);
}

Property Value

Type: System.Xml::XmlQualifiedName^

The name of the XML element that corresponds to the current MessagePart.

This property corresponds to the element attribute of the part element for which the MessagePart class serves as a wrapper.

MessagePart^ myMessagePart = gcnew MessagePart;
myMessagePart->Name = partName;
myMessagePart->Element = gcnew XmlQualifiedName( element,targetNamespace );
myMessage->Parts->Add( myMessagePart );

.NET Framework
Available since 1.1
Return to top
Show: