Editar

Compartir a través de


MessagePart.Element Property

Definition

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

public:
 property System::Xml::XmlQualifiedName ^ Element { System::Xml::XmlQualifiedName ^ get(); void set(System::Xml::XmlQualifiedName ^ value); };
public System.Xml.XmlQualifiedName Element { get; set; }
member this.Element : System.Xml.XmlQualifiedName with get, set
Public Property Element As XmlQualifiedName

Property Value

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

Examples

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

Remarks

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

Applies to