SoapHeaderExceptionとは? わかりやすく解説

SoapHeaderException クラス

サーバー エラーSOAP 表現

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

<SerializableAttribute> _
Public Class SoapHeaderException
    Inherits SoapException
Dim instance As SoapHeaderException
[SerializableAttribute] 
public class SoapHeaderException : SoapException
[SerializableAttribute] 
public ref class SoapHeaderException : public
 SoapException
/** @attribute SerializableAttribute() */ 
public class SoapHeaderException extends SoapException
SerializableAttribute 
public class SoapHeaderException extends
 SoapException
解説解説
使用例使用例

次の例では、XML Web サービス クライアントMyWebMethod XML Web サービス メソッド呼び出しMustUnderstand プロパティtrue設定されMyHeader 型の SOAP ヘッダー渡してます。XML Web サービス メソッドMyHeader SOAP ヘッダーDidUnderstand プロパティtrue設定しない場合は、SoapHeaderExceptionスローさます。

Imports System

Public Class Sample
    
    Public Shared Sub Main()
        Dim ws As New MyWebService()

        Try
            Dim customHeader As New
 MyHeader1()

            customHeader.MyValue = "Header Value for MyValue"
            customHeader.MustUnderstand = True

            ws.myHeader = customHeader

        Dim results As Integer

            results = ws.MyWebMethod(3,5)
        Catch e As Exception
            Console.WriteLine("Exception: {0}", e.ToString())
        End Try
    End Sub
End Class

using System;

public class Sample {
    
    public static void Main()
 {
        MyWebService ws = new MyWebService();

        try {
            MyHeader customHeader = new MyHeader();
            customHeader.MyValue = "Header Value for MyValue";
            customHeader.MustUnderstand = true;
            ws.myHeader = customHeader;
            
        int results = ws.MyWebMethod(3,5);
        }
        catch (Exception e) {
            Console.WriteLine ("Exception: {0}", e.ToString());
        }
    }
}

int main()
{
   MyWebService^ ws = gcnew MyWebService;
   try
   {
      MyHeader^ customHeader = gcnew MyHeader;
      customHeader->MyValue = "Header Value for MyValue";
      customHeader->MustUnderstand = true;
      ws->myHeader = customHeader;
      int results = ws->MyWebMethod( 3, 5 );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "Exception: {0}", e );
   }

}

import System.*;

public class Sample
{
    public static void main(String[]
 args)
    {
        MyWebService ws = new MyWebService();
        try {
            MyHeader customHeader = new MyHeader();
            customHeader.myValue = "Header Value for MyValue";
            customHeader.set_MustUnderstand(true);
            ws.myHeader = customHeader;
            int results = ws.MyWebMethod(3, 5);
        }
        catch (System.Exception e) {
            Console.WriteLine("Exception: {0}", e.ToString());
        }
    } //main
} //Sample

継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.Web.Services.Protocols.SoapException
        System.Web.Services.Protocols.SoapHeaderException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス

SoapHeaderException コンストラクタ ()


SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, String, String, SoapFaultSubCode, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

関連付けるデータ指定して、SoapHeaderException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String, _
    role As String, _
    lang As String, _
    subCode As SoapFaultSubCode, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String
Dim role As String
Dim lang As String
Dim subCode As SoapFaultSubCode
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, actor, role, lang, subCode, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor,
    string role,
    string lang,
    SoapFaultSubCode subCode,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor, 
    String^ role, 
    String^ lang, 
    SoapFaultSubCode^ subCode, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor, 
    String role, 
    String lang, 
    SoapFaultSubCode subCode, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String, 
    role : String, 
    lang : String, 
    subCode : SoapFaultSubCode, 
    innerException : Exception
)

パラメータ

message

例外発生した理由を示すメッセージ。このパラメータMessage プロパティ設定します

code

発生したエラー種類。このパラメータCode プロパティ設定します

actor

例外原因となったコード一部通常、これは XML Web サービス メソッドURLなります。このパラメータActor プロパティ設定します

role

SOAP メッセージの処理での XML Web サービス役割を表す URI。このパラメータRole プロパティ設定します

lang

例外関連付けられている言語識別する文字列。このパラメータLang プロパティ設定します

subCode

SOAP 違反subcode 要素内容格納している SoapFaultSubcode。

innerException

例外主要原因への参照。このパラメータは InnerException プロパティ設定します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, String, SoapFaultSubCode, Exception)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

関連付けるデータ指定して、SoapHeaderException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String, _
    role As String, _
    subCode As SoapFaultSubCode, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String
Dim role As String
Dim subCode As SoapFaultSubCode
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, actor, role, subCode, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor,
    string role,
    SoapFaultSubCode subCode,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor, 
    String^ role, 
    SoapFaultSubCode^ subCode, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor, 
    String role, 
    SoapFaultSubCode subCode, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String, 
    role : String, 
    subCode : SoapFaultSubCode, 
    innerException : Exception
)

パラメータ

message

例外発生した理由を示すメッセージ。このパラメータMessage プロパティ設定します

code

発生したエラー種類。このパラメータCode プロパティ設定します

actor

例外原因となったコード一部通常、これは XML Web サービス メソッドURLなります。このパラメータActor プロパティ設定します

role

SOAP メッセージの処理での XML Web サービス役割を表す URI。このパラメータRole プロパティ設定します

subCode

SOAP 違反<subcode> 要素内容格納している SoapFaultSubcode。

innerException

例外主要原因への参照。このパラメータは InnerException プロパティ設定します

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, Exception)

SoapHeaderException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, actor, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String, 
    innerException : Exception
)

パラメータ

message

例外発生した理由を示すメッセージ。このパラメータMessage プロパティ設定します

code

発生したエラー種類。このパラメータCode プロパティ設定します

actor

例外原因となったコード一部通常、これは XML Web サービス メソッドURLなります。このパラメータActor プロパティ設定します

innerException

例外主要原因への参照。このパラメータは InnerException プロパティ設定します

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Process the header from the client.
      Try
         Dim j As Integer
 = 100 / mySoapHeader.number
      Catch e As Exception
         ' Throw a SoapHeaderException if an exception is caught during
         ' header processing.
         Throw New SoapHeaderException( _
            "An Exception was thrown during the processing of
 header", _
            SoapException.ClientFaultCode, _
            "http://localhost/MathSvc_SoapHeaderException4.vb.asmx/Add",
 e)
      End Try
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
   public MySoapHeader mySoapHeader;

   [WebMethod]
   [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
   public float Add(float
 xValue, float yValue) 
   {
      // Process the header from the client.
      try 
      {
         int j = 100/mySoapHeader.number;
      }
      catch(Exception e)
      {
         // Throw a SoapHeaderException if an exception is caught during
         // header processing.
         throw new SoapHeaderException(
            "An Exception was thrown during the processing of header",
            SoapException.ClientFaultCode,
            "http://localhost/MathSvc_SoapHeaderException4.cs.asmx/Add"
,
            e);
      }
      return(xValue + yValue);
   }
}
import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;

public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", 
            Direction = SoapHeaderDirection.In)
     */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Process the header from the client.
        try {
            int j = 100 / mySoapHeader.number;
        }
        catch (System.Exception e) {
            // Throw a SoapHeaderException if an exception is caught
 during
            // header processing.
            throw new SoapHeaderException("An Exception was
 thrown during " 
                + "the processing of header", SoapException.ClientFaultCode,
 
                "http://localhost/MathSvc_SoapHeaderException4.cs.asmx/Add",
 e);
        }
        return xValue + yValue;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName)

SoapHeaderException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName _
)
Dim message As String
Dim code As XmlQualifiedName

Dim instance As New SoapHeaderException(message,
 code)
public SoapHeaderException (
    string message,
    XmlQualifiedName code
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName
)

パラメータ

message

例外発生した理由を示すメッセージ。このパラメータMessage プロパティ設定します

code

発生したエラー種類。このパラメータCode プロパティ設定します

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Throw an exception if the value received in the header is zero.
      If mySoapHeader.number = 0 Then
         Throw New SoapHeaderException( _
            "value received in the header is zero.",
 _
            SoapException.ClientFaultCode)
      End If
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
    public MySoapHeader mySoapHeader;
    
    [WebMethod]
    [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
    public float Add(float
 xValue, float yValue) 
    {
        // Throw an exception if the value received in the header is
 zero.
        if(mySoapHeader.number == 0)
            throw new SoapHeaderException(
               "value received in the header is zero."
,
               SoapException.ClientFaultCode);
        return(xValue + yValue);
    }
}
<%@ WebService Language="VJ#" Class="MathSvc" %>

import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;

public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", 
        Direction = SoapHeaderDirection.In)
    */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Throw an exception if the value received in the header is
 zero.
        if ( mySoapHeader.number == 0  ) {
            throw new SoapHeaderException("value received
 in the header is zero.", 
                SoapException.ClientFaultCode) ;
        }
        return xValue + yValue ;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, Exception)

SoapHeaderException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    innerException As Exception _
)
Dim message As String
Dim code As XmlQualifiedName
Dim innerException As Exception

Dim instance As New SoapHeaderException(message,
 code, innerException)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    Exception innerException
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    Exception^ innerException
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    Exception innerException
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    innerException : Exception
)

パラメータ

message

例外発生した理由を示すメッセージ。このパラメータMessage プロパティ設定します

code

発生したエラー種類。このパラメータCode プロパティ設定します

innerException

例外主要原因への参照。このパラメータは InnerException プロパティ設定します

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Process the header from the client.
      Try
         Dim j As Integer
 = 100 / mySoapHeader.number
      Catch e As Exception
         ' Throw a SoapHeaderException if an exception is caught during
 
         ' header processing.
         Throw New SoapHeaderException( _
            "An Exception was thrown during the processing of
 header", _
            SoapException.ClientFaultCode, e)
      End Try
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
   public MySoapHeader mySoapHeader;

   [WebMethod]
   [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
   public float Add(float
 xValue, float yValue) 
   {
      // Process the header from the client.
      try 
      {
         int j = 100/mySoapHeader.number;
      }
      catch(Exception e)
      {
         // Throw a SoapHeaderException if an exception is caught during
 
         // header processing.
         throw new SoapHeaderException(
            "An Exception was thrown during the processing of header",
            SoapException.ClientFaultCode, e);
      }
      return(xValue + yValue);
   }
}
<%@ WebService Language="VJ#" Class="MathSvc" %>
import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;
public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", Direction 
        = SoapHeaderDirection.In)
     */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Process the header from the client.
        try {
            int j = 100 / mySoapHeader.number;
        }
        catch (System.Exception e) {
            // Throw a SoapHeaderException if an exception is caught during
 
            // header processing.
            throw new SoapHeaderException(
                "An Exception was thrown during the processing of header",
 
                SoapException.ClientFaultCode, e);
        }
        return xValue + yValue;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (String, XmlQualifiedName, String)

SoapHeaderException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    code As XmlQualifiedName, _
    actor As String _
)
Dim message As String
Dim code As XmlQualifiedName
Dim actor As String

Dim instance As New SoapHeaderException(message,
 code, actor)
public SoapHeaderException (
    string message,
    XmlQualifiedName code,
    string actor
)
public:
SoapHeaderException (
    String^ message, 
    XmlQualifiedName^ code, 
    String^ actor
)
public SoapHeaderException (
    String message, 
    XmlQualifiedName code, 
    String actor
)
public function SoapHeaderException (
    message : String, 
    code : XmlQualifiedName, 
    actor : String
)

パラメータ

message

例外発生した理由を示すメッセージ。このパラメータMessage プロパティ設定します

code

発生したエラー種類。このパラメータCode プロパティ設定します

actor

例外原因となったコード一部通常、これは XML Web サービス メソッドURLなります。このパラメータActor プロパティ設定します

使用例使用例
<%@ WebService Language="VB" Class="MathSvc"
 %>

Imports System
Imports System.Web.Services
Imports System.Web.Services.Protocols

Public Class MySoapHeader
   Inherits SoapHeader
   Public number As Integer
End Class 'MySoapHeader

Public Class MathSvc
   Inherits WebService
   Public mySoapHeader As MySoapHeader

   <WebMethod(), SoapHeaderAttribute("mySoapHeader",
 _
      Direction := SoapHeaderDirection.In)>  _
   Public Function Add(xValue As
 Single, yValue As Single)
 As Single
      ' Throw an exception if the value received in the header is zero.
      If mySoapHeader.number = 0 Then
         Throw New SoapHeaderException("value
 received in the header is zero.", _
            SoapException.ClientFaultCode, _
            "http://localhost/MathSvc_SoapHeaderException3.vb.asmx/Add")
      End If
      Return xValue + yValue
   End Function 'Add
End Class 'MathSvc
<%@ WebService Language="C#" Class="MathSvc" %>

using System;
using System.Web.Services;
using System.Web.Services.Protocols;

public class MySoapHeader : SoapHeader
{
   public int number;
}

public class MathSvc : WebService {
    public MySoapHeader mySoapHeader;
    
    [WebMethod]
    [SoapHeaderAttribute("mySoapHeader", Direction=SoapHeaderDirection.In)]
    public float Add(float
 xValue, float yValue) 
    {
        // Throw an exception if the value received in the header is
 zero.
        if(mySoapHeader.number == 0)
            throw new SoapHeaderException(
               "value received in the header is zero."
,
               SoapException.ClientFaultCode,
               "http://localhost/MathSvc_SoapHeaderException3.cs.asmx/Add");
        return(xValue + yValue);
    }
}
<%@ WebService Language="VJ#" Class="MathSvc" %>

import System.*;
import System.Web.Services.*;
import System.Web.Services.Protocols.*;

public class MySoapHeader extends SoapHeader
{
    public int number;
} //MySoapHeader

public class MathSvc extends WebService 
{
    public MySoapHeader mySoapHeader;

    /** @attribute WebMethod()
     */
    /** @attribute SoapHeaderAttribute("mySoapHeader", 
        Direction = SoapHeaderDirection.In)
     */
    public float Add(float
 xValue, float yValue) throws SoapHeaderException
    {
        // Throw an exception if the value received in the header is
 zero.
        if (mySoapHeader.number == 0) {
            throw new SoapHeaderException("value received
 in the header is zero.",
                SoapException.ClientFaultCode, 
                "http://localhost/MathSvc_SoapHeaderException3.cs.asmx/Add");
        }
        return xValue + yValue;
    } //Add
} //MathSvc
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ (SerializationInfo, StreamingContext)

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

シリアル化制御するパラメータ指定して、SoapHeaderException クラス新しインスタンス初期化します。

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

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New SoapHeaderException(info,
 context)
protected SoapHeaderException (
    SerializationInfo info,
    StreamingContext context
)
protected:
SoapHeaderException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected SoapHeaderException (
    SerializationInfo info, 
    StreamingContext context
)
protected function SoapHeaderException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

シリアル化および逆シリアル化の際に使用する値を格納している SerializationInfo。

context

シリアル化ストリーム転送元および転送先に関すデータ格納している SoapHeaderException

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException コンストラクタ

SoapHeaderException クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
SoapHeaderException () SoapHeaderException クラス新しインスタンス初期化します。
SoapHeaderException (SerializationInfo, StreamingContext) シリアル化制御するパラメータ指定してSoapHeaderException クラス新しインスタンス初期化します。
SoapHeaderException (String, XmlQualifiedName) SoapHeaderException クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, Exception) SoapHeaderException クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String) SoapHeaderException クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String, Exception) SoapHeaderException クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String, String, SoapFaultSubCode, Exception) 関連付けるデータ指定してSoapHeaderException クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

SoapHeaderException (String, XmlQualifiedName, String, String, String, SoapFaultSubCode, Exception) 関連付けるデータ指定してSoapHeaderException クラス新しインスタンス初期化します。

.NET Compact Framework によってサポートされています。

参照参照

関連項目

SoapHeaderException クラス
SoapHeaderException メンバ
System.Web.Services.Protocols 名前空間

SoapHeaderException プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Actor  例外原因となったコード一部取得します。 ( SoapException から継承されます。)
パブリック プロパティ Code  SOAP 違反コード種類取得します。 ( SoapException から継承されます。)
パブリック プロパティ Data  例外に関する追加ユーザー定義情報提供するキー/値ペアコレクション取得します。 ( Exception から継承されます。)
パブリック プロパティ Detail  アプリケーション固有のエラー情報を表す XmlNode を取得します。 ( SoapException から継承されます。)
パブリック プロパティ HelpLink  例外関連付けられているヘルプ ファイルへのリンクを取得または設定します。 ( Exception から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンス取得します。 ( Exception から継承されます。)
パブリック プロパティ Lang  例外関連付けられている言語取得します。 ( SoapException から継承されます。)
パブリック プロパティ Message  現在の例外を説明するメッセージ取得します。 ( Exception から継承されます。)
パブリック プロパティ Node  例外原因となったコード一部を表す URI取得します。 ( SoapException から継承されます。)
パブリック プロパティ Role  SOAP メッセージの処理での XML Web サービス関数を表す URL取得します。 ( SoapException から継承されます。)
パブリック プロパティ Source  エラー原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。 ( Exception から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレーム文字列形式取得します。 ( Exception から継承されます。)
パブリック プロパティ SubCode  SOAP 違反subcode XML 要素格納されているオプションエラー情報取得します。 ( SoapException から継承されます。)
パブリック プロパティ TargetSite  現在の例外をスローするメソッド取得します。 ( Exception から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

SoapHeaderException クラス
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス

SoapHeaderException メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetBaseException  派生クラスオーバーライドされた場合、それ以後発生する 1 つ上の例外主要な原因である Exception返します。 ( Exception から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetObjectData  SerializationInfo に例外情報設定します。 ( SoapException から継承されます。)
パブリック メソッド GetType  現在のインスタンスランタイム型を取得します。 ( Exception から継承されます。)
パブリック メソッド IsClientFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードClient SOAP 違反コード等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド IsMustUnderstandFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードMustUnderstand等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド IsServerFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードServer SOAP 違反コード等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド IsVersionMismatchFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードVersionMismatch SOAP 違反コード等価であるかどうかを示す値を返します。 ( SoapException から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の例外の文字列形式作成して返します。 ( Exception から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SoapHeaderException クラス
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス

SoapHeaderException メンバ

サーバー エラーSOAP 表現

SoapHeaderException データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド SoapHeaderException オーバーロードされますSoapHeaderException クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Actor  例外原因となったコード一部取得します。(SoapException から継承されます。)
パブリック プロパティ Code  SOAP 違反コード種類取得します。(SoapException から継承されます。)
パブリック プロパティ Data  例外に関する追加ユーザー定義情報提供するキー/値ペアコレクション取得します。(Exception から継承されます。)
パブリック プロパティ Detail  アプリケーション固有のエラー情報を表す XmlNode を取得します。(SoapException から継承されます。)
パブリック プロパティ HelpLink  例外関連付けられているヘルプ ファイルへのリンクを取得または設定します。(Exception から継承されます。)
パブリック プロパティ InnerException  現在の例外を発生させた Exception インスタンス取得します。(Exception から継承されます。)
パブリック プロパティ Lang  例外関連付けられている言語取得します。(SoapException から継承されます。)
パブリック プロパティ Message  現在の例外を説明するメッセージ取得します。(Exception から継承されます。)
パブリック プロパティ Node  例外原因となったコード一部を表す URI取得します。(SoapException から継承されます。)
パブリック プロパティ Role  SOAP メッセージの処理での XML Web サービス関数を表す URL取得します。(SoapException から継承されます。)
パブリック プロパティ Source  エラー原因となったアプリケーションまたはオブジェクトの名前を取得または設定します。(Exception から継承されます。)
パブリック プロパティ StackTrace  現在の例外がスローされたときにコール スタックにあったフレーム文字列形式取得します。(Exception から継承されます。)
パブリック プロパティ SubCode  SOAP 違反subcode XML 要素格納されているオプションエラー情報取得します。(SoapException から継承されます。)
パブリック プロパティ TargetSite  現在の例外をスローするメソッド取得します。(Exception から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetBaseException  派生クラスオーバーライドされた場合、それ以後発生する 1 つ上の例外主要な原因である Exception返します。 (Exception から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetObjectData  SerializationInfo に例外情報設定します。 (SoapException から継承されます。)
パブリック メソッド GetType  現在のインスタンスランタイム型を取得します。 (Exception から継承されます。)
パブリック メソッド IsClientFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードClient SOAP 違反コード等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド IsMustUnderstandFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードMustUnderstand等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド IsServerFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードServer SOAP 違反コード等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド IsVersionMismatchFaultCode  使用している SOAP プロトコルのバージョンに関係なく、SOAP 違反コードVersionMismatch SOAP 違反コード等価であるかどうかを示す値を返します。 (SoapException から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の例外の文字列形式作成して返します。 (Exception から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

SoapHeaderException クラス
System.Web.Services.Protocols 名前空間
SoapHeader.MustUnderstand プロパティ
SoapHeader.DidUnderstand プロパティ
SoapHeader クラス
SoapException クラス


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

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

辞書ショートカット

すべての辞書の索引

「SoapHeaderException」の関連用語

SoapHeaderExceptionのお隣キーワード
検索ランキング

   

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



SoapHeaderExceptionのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS