SoapHeaderAttribute.Direction プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As SoapHeaderAttribute Dim value As SoapHeaderDirection value = instance.Direction instance.Direction = value
public: property SoapHeaderDirection Direction { SoapHeaderDirection get (); void set (SoapHeaderDirection value); }
/** @property */ public SoapHeaderDirection get_Direction () /** @property */ public void set_Direction (SoapHeaderDirection value)
public function get Direction () : SoapHeaderDirection public function set Direction (value : SoapHeaderDirection)
SOAP ヘッダーの目的の受信者。既定値は In で、目的の受信者が XML Web サービスだけであることを示します。

MyHeader 型の 1 つの SoapHeader を定義する MyWebService XML Web サービスを次に示します。Hello XML Web サービス メソッドは、MyHeader を XML Web サービス メソッドおよびクライアントに送信して XML Web サービス メソッドを呼び出す必要があることを指定します。
Imports System Imports System.Web.Services Imports System.Web.Services.Protocols ' Define a SOAP header by deriving from the SoapHeader base class. ' The header contains just one string value. Public Class MyHeader Inherits SoapHeader Public MyValue As String End Class 'MyHeader Public Class MyWebService ' Member variable to receive the contents of the MyHeader SOAP header. Public myHeader As MyHeader <WebMethod, _ SoapHeader("myHeader", Direction := SoapHeaderDirection.InOut)> _ Public Sub Hello() End Sub 'Hello End Class 'MyWebService
using System; using System.Web.Services; using System.Web.Services.Protocols; // Define a SOAP header by deriving from the SoapHeader base class. // The header contains just one string value. public class MyHeader : SoapHeader { public string MyValue; } public class MyWebService { // Member variable to receive the contents of the MyHeader SOAP header. public MyHeader myHeader; [WebMethod] [SoapHeader("myHeader", Direction=SoapHeaderDirection.InOut)] public void Hello() { } }
#using <System.EnterpriseServices.dll> #using <System.Web.Services.dll> using namespace System; using namespace System::Web::Services; using namespace System::Web::Services::Protocols; // Define a SOAP header by deriving from the SoapHeader base class. // The header contains just one string value. public ref class MyHeader: public SoapHeader { public: String^ MyValue; }; public ref class MyWebService { public: // Member variable to receive the contents of the MyHeader SOAP header. MyHeader^ myHeader; [WebMethod] [SoapHeader("myHeader",Direction=SoapHeaderDirection::InOut)] void Hello(){} };
import System.*; import System.Web.Services.*; import System.Web.Services.Protocols.*; // Define a SOAP header by deriving from the SoapHeader base class. // The header contains just one string value. public class MyHeader extends SoapHeader { public String myValue; } //MyHeader public class MyWebService { // Member variable to receive the contents of the MyHeader SOAP header. public MyHeader myHeader; /** @attribute WebMethod() */ /** @attribute SoapHeader("myHeader", Direction = SoapHeaderDirection.InOut) */ public void Hello() { } //Hello } //MyWebService

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSoapHeaderAttribute.Direction プロパティを検索する場合は、下記のリンクをクリックしてください。

- SoapHeaderAttribute.Direction プロパティのページへのリンク