MessagePart.Element Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET