共用方式為


MessagePart.Element 屬性

定義

取得或設定 XML 項目的名稱,其對應至目前的 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

屬性值

XmlQualifiedName

XML 項目的名稱,其對應至目前的 MessagePart

範例

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)

備註

這個屬性會對應至 element 類別做為包裝函式的專案 MessagePart part 屬性。

適用於