SoapHeaderBinding.Message プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文Dim instance As SoapHeaderBinding Dim value As XmlQualifiedName value = instance.Message instance.Message = value
public: property XmlQualifiedName^ Message { XmlQualifiedName^ get (); void set (XmlQualifiedName^ value); }
/** @property */ public XmlQualifiedName get_Message () /** @property */ public void set_Message (XmlQualifiedName value)
public function get Message () : XmlQualifiedName public function set Message (value : XmlQualifiedName)
Message の名前を表す XmlQualifiedName。
解説
使用例Dim mySoapHeaderBinding As New SoapHeaderBinding() ' Set the Message within the XML Web service to which the ' 'SoapHeaderBinding' applies. mySoapHeaderBinding.Message = New XmlQualifiedName("s0:HelloMyHeader") mySoapHeaderBinding.Part = "MyHeader" mySoapHeaderBinding.Use = SoapBindingUse.Literal ' Add mySoapHeaderBinding to the 'myInputBinding' object. myInputBinding.Extensions.Add(mySoapHeaderBinding)
SoapHeaderBinding mySoapHeaderBinding=new SoapHeaderBinding(); // Set the Message within the XML Web service to which the // 'SoapHeaderBinding' applies. mySoapHeaderBinding.Message= new XmlQualifiedName("s0:HelloMyHeader"); mySoapHeaderBinding.Part="MyHeader"; mySoapHeaderBinding.Use=SoapBindingUse.Literal; // Add mySoapHeaderBinding to the 'myInputBinding' object. myInputBinding.Extensions.Add(mySoapHeaderBinding);
SoapHeaderBinding^ mySoapHeaderBinding = gcnew SoapHeaderBinding; // Set the Message within the XML Web service to which the // 'SoapHeaderBinding' applies. mySoapHeaderBinding->Message = gcnew XmlQualifiedName( "s0:HelloMyHeader" ); mySoapHeaderBinding->Part = "MyHeader"; mySoapHeaderBinding->Use = SoapBindingUse::Literal; // Add mySoapHeaderBinding to the 'myInputBinding' object. myInputBinding->Extensions->Add( mySoapHeaderBinding );
SoapHeaderBinding mySoapHeaderBinding = new SoapHeaderBinding(); // Set the Message within the XML Web service to which the // 'SoapHeaderBinding' applies. mySoapHeaderBinding.set_Message(new XmlQualifiedName( "s0:HelloMyHeader")); mySoapHeaderBinding.set_Part("MyHeader"); mySoapHeaderBinding.set_Use(SoapBindingUse.Literal); // Add mySoapHeaderBinding to the 'myInputBinding' object. myInputBinding.get_Extensions().Add(mySoapHeaderBinding);
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- SoapHeaderBinding.Message プロパティのページへのリンク