Compartilhar via


SharePointCommandException Class

Definition

The exception that is thrown when a SharePoint command fails.

public ref class SharePointCommandException : Exception
[System.Serializable]
public class SharePointCommandException : Exception
[<System.Serializable>]
type SharePointCommandException = class
    inherit Exception
Public Class SharePointCommandException
Inherits Exception
Inheritance
SharePointCommandException
Derived
Attributes

Remarks

SharePoint commands are methods that can be used in a SharePoint tools extension to call into the SharePoint server object model. SharePoint commands are executed by a 64-bit process named vssphost4.exe. Any exception raised in vssphost4.exe is returned to the SharePoint command as a SharePointCommandException.

For more information about SharePoint commands, see Calling into the SharePoint Object Models.

Constructors

SharePointCommandException()

Initializes a new instance of the SharePointCommandException class.

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, 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(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)

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

Properties

CommandId

Gets the command ID that caused the exception.

FullTypeName

Gets the full type name of the command class that caused the exception.

OriginalStackTrace

Gets the original exception stack trace from the vssphost4.exe process.

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets SerializationInfo with information about the exception.

Applies to