SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, String, String, SoapFaultSubCode, Exception)
アセンブリ: 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 )
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, String, SoapFaultSubCode, Exception)
アセンブリ: 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 )
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
SoapHeaderException コンストラクタ (String, XmlQualifiedName, String, Exception)
アセンブリ: 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 )
<%@ 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
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
SoapHeaderException コンストラクタ (String, XmlQualifiedName)
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
Dim message As String Dim code As XmlQualifiedName Dim instance As New SoapHeaderException(message, 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
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
SoapHeaderException コンストラクタ (String, XmlQualifiedName, Exception)
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
Dim message As String Dim code As XmlQualifiedName Dim innerException As Exception Dim instance As New SoapHeaderException(message, code, innerException)
public function SoapHeaderException ( message : String, code : XmlQualifiedName, innerException : Exception )
<%@ 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
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
SoapHeaderException コンストラクタ (String, XmlQualifiedName, String)
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
Dim message As String Dim code As XmlQualifiedName Dim actor As String Dim instance As New SoapHeaderException(message, code, 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
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
SoapHeaderException コンストラクタ (SerializationInfo, StreamingContext)
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
Dim info As SerializationInfo Dim context As StreamingContext Dim instance As New SoapHeaderException(info, context)
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
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 コンストラクタ ()
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文
プラットフォーム
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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
参照
- SoapHeaderException コンストラクタのページへのリンク