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 Element As XmlQualifiedName

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.

Dim myMessagePart As 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: