Share via


PublishingSoapException.ThrowSoapException Method

Throws a SOAP exception.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Shared Sub ThrowSoapException ( _
    errorMessage As String, _
    errorCode As Integer _
)
'Usage
Dim errorMessage As String
Dim errorCode As IntegerPublishingSoapException.ThrowSoapException(errorMessage, _
    errorCode)
public static void ThrowSoapException(
    string errorMessage,
    int errorCode
)

Parameters

  • errorMessage
    Type: System.String

    The error message that explains the reason for the exception.

  • errorCode
    Type: System.Int32

    The error code for the exception.

See Also

Reference

PublishingSoapException Class

PublishingSoapException Members

Microsoft.SharePoint.Publishing Namespace