SoapHeaderAttribute.Direction プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SoapHeaderAttribute.Direction プロパティの意味・解説 

SoapHeaderAttribute.Direction プロパティ

SOAP ヘッダー送信先XML Web サービスXML Web サービス クライアント、またはこれら両方かどうか取得または設定します

名前空間: System.Web.Services.Protocols
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public Property Direction As
 SoapHeaderDirection
Dim instance As SoapHeaderAttribute
Dim value As SoapHeaderDirection

value = instance.Direction

instance.Direction = value
public SoapHeaderDirection Direction { get;
 set; }
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 サービス メソッドは、MyHeaderXML 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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderAttribute クラス
SoapHeaderAttribute メンバ
System.Web.Services.Protocols 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からSoapHeaderAttribute.Direction プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSoapHeaderAttribute.Direction プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSoapHeaderAttribute.Direction プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

SoapHeaderAttribute.Direction プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SoapHeaderAttribute.Direction プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS