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 XmlQualifiedName Element { get; set; }

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 = new MessagePart();
myMessagePart.Name = partName;
myMessagePart.Element = new XmlQualifiedName(element,targetNamespace);
myMessage.Parts.Add(myMessagePart);

.NET Framework
Available since 1.1
Return to top
Show: