SharePointCommandException Class

 

The exception that is thrown when a SharePoint command fails.

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

System::Object
  System::Exception
    Microsoft.VisualStudio.SharePoint::SharePointCommandException
      Microsoft.VisualStudio.SharePoint::SharePointCommandCanceledException

[SerializableAttribute]
public ref class SharePointCommandException : Exception

NameDescription
System_CAPS_pubmethodSharePointCommandException()

Initializes a new instance of the SharePointCommandException class.

System_CAPS_protmethodSharePointCommandException(SerializationInfo^, StreamingContext)

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

System_CAPS_pubmethodSharePointCommandException(String^)

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

System_CAPS_pubmethodSharePointCommandException(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.

System_CAPS_pubmethodSharePointCommandException(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.

System_CAPS_pubmethodSharePointCommandException(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.

NameDescription
System_CAPS_pubpropertyCommandId

Gets the command ID that caused the exception.

System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyFullTypeName

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

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertyOriginalStackTrace

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

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

Sets SerializationInfo with information about the exception.(Overrides Exception::GetObjectData(SerializationInfo^, StreamingContext).)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

NameDescription
System_CAPS_proteventSerializeObjectState

(Inherited from Exception.)

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.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: