Share via


SharePointCommandException Constructors

Definition

Overloads

SharePointCommandException()

Initializes a new instance of the SharePointCommandException class.

SharePointCommandException(String)

Initializes a new instance of the SharePointCommandException class with a specified error message.

SharePointCommandException(SerializationInfo, StreamingContext)

Initializes a new instance of the SharePointCommandException class with serialized data.

SharePointCommandException(String, Exception)

Initializes a new instance of the SharePointCommandException class with a specified error message and a reference to the inner exception that caused the exception.

SharePointCommandException(String, String, String, String)

Initializes a new instance of the SharePointCommandException class with a specified error message, full type name, and the original stack trace.

SharePointCommandException(String, String, String, String, Exception)

Initializes a new instance of the SharePointCommandException class with a specified error message, full type name, the original stack trace, and a reference to the inner exception that caused the exception.

SharePointCommandException()

Initializes a new instance of the SharePointCommandException class.

public:
 SharePointCommandException();
public SharePointCommandException ();
Public Sub New ()

Applies to

SharePointCommandException(String)

Initializes a new instance of the SharePointCommandException class with a specified error message.

public:
 SharePointCommandException(System::String ^ message);
public SharePointCommandException (string message);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String)

Parameters

message
String

The message describing the error.

Applies to

SharePointCommandException(SerializationInfo, StreamingContext)

Initializes a new instance of the SharePointCommandException class with serialized data.

protected:
 SharePointCommandException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SharePointCommandException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo object that holds the serialized object data about the exception being thrown.

context
StreamingContext

The SerializationInfo object that contains contextual information about the source or destination.

Applies to

SharePointCommandException(String, Exception)

Initializes a new instance of the SharePointCommandException class with a specified error message and a reference to the inner exception that caused the exception.

public:
 SharePointCommandException(System::String ^ message, Exception ^ innerException);
public SharePointCommandException (string message, Exception innerException);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string * Exception -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), then the current exception is raised in a catch block that handles the inner exception.

Applies to

SharePointCommandException(String, String, String, String)

Initializes a new instance of the SharePointCommandException class with a specified error message, full type name, and the original stack trace.

public:
 SharePointCommandException(System::String ^ message, System::String ^ commandId, System::String ^ fullTypeName, System::String ^ originalStackTrace);
public SharePointCommandException (string message, string commandId, string fullTypeName, string originalStackTrace);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string * string * string * string -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String, commandId As String, fullTypeName As String, originalStackTrace As String)

Parameters

message
String

The error message that explains the reason for the exception.

commandId
String

The ID of the command that threw the exception.

fullTypeName
String

The full type name of the command class that threw the exception.

originalStackTrace
String

The original stack trace of the exception in the vssphost4.exe process.

Applies to

SharePointCommandException(String, String, String, String, Exception)

Initializes a new instance of the SharePointCommandException class with a specified error message, full type name, the original stack trace, and a reference to the inner exception that caused the exception.

public:
 SharePointCommandException(System::String ^ message, System::String ^ commandId, System::String ^ fullTypeName, System::String ^ originalStackTrace, Exception ^ innerException);
public SharePointCommandException (string message, string commandId, string fullTypeName, string originalStackTrace, Exception innerException);
new Microsoft.VisualStudio.SharePoint.SharePointCommandException : string * string * string * string * Exception -> Microsoft.VisualStudio.SharePoint.SharePointCommandException
Public Sub New (message As String, commandId As String, fullTypeName As String, originalStackTrace As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

commandId
String

The ID of the command that threw the exception.

fullTypeName
String

The full type name of the command class that threw the exception.

originalStackTrace
String

The original stack trace of the exception in the vssphost4.exe process.

innerException
Exception

The exception that is the cause of the current exception. If the innerException parameter is not a null reference (Nothing in Visual Basic), then the current exception is raised in a catch block that handles the inner exception.

Applies to