Share via


TrustFormatException Constructor (String)

Initializes a new instance of the TrustFormatException class using the specified error message.

Namespace: Microsoft.Web.Services2.Security
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim message As String
Dim trustFormatException1 As New TrustFormatException(message)

Syntax

'Declaration
Public Sub New( _
    ByVal message As String _
)
public TrustFormatException(
    string message
);
public: TrustFormatException(
    String^ message
);
public TrustFormatException(
    System.String message
);
public function TrustFormatException(
     message : String
);

Parameters

  • message
    The error message that explains the reason for the exception.

Remarks

This constructor initializes the System.Exception.Message property of the new instance to a system-supplied message that describes the error, such as, "An invalid XML qualified name was specified."

The following table shows the initial property values for an instance of the TrustFormatException class.

Property

Value

System.Web.Services.Protocols.SoapException.Code

!:System.Web.Services.Protocols.SoapHeaderException.ClientFaultCode

System.Exception.InnerException

null

System.Exception.Message

The error message string.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

TrustFormatException Class
Microsoft.Web.Services2.Security Namespace

Other Resources

TrustFormatException Members