SharePointCommandException 构造函数

定义

重载

SharePointCommandException()

初始化 SharePointCommandException 类的新实例。

SharePointCommandException(String)

用指定的错误消息初始化 SharePointCommandException 类的新实例。

SharePointCommandException(SerializationInfo, StreamingContext)

用序列化数据初始化 SharePointCommandException 类的新实例。

SharePointCommandException(String, Exception)

使用指定的错误信息和对导致此异常的内部异常的引用来初始化 SharePointCommandException 类的新实例。

SharePointCommandException(String, String, String, String)

使用指定的错误消息、完整类型名称和原始堆栈跟踪来初始化 SharePointCommandException 类的新实例。

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

使用指定的错误消息、完整类型名称、原始堆栈跟踪和对导致该异常的内部异常的引用来初始化 SharePointCommandException 类的新实例。

SharePointCommandException()

初始化 SharePointCommandException 类的新实例。

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

适用于

SharePointCommandException(String)

用指定的错误消息初始化 SharePointCommandException 类的新实例。

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)

参数

message
String

描述错误的消息。

适用于

SharePointCommandException(SerializationInfo, StreamingContext)

用序列化数据初始化 SharePointCommandException 类的新实例。

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)

参数

info
SerializationInfo

保留有关引发异常的序列化对象数据的 SerializationInfo 对象。

context
StreamingContext

包含有关源或目标的上下文信息的 SerializationInfo 对象。

适用于

SharePointCommandException(String, Exception)

使用指定的错误信息和对导致此异常的内部异常的引用来初始化 SharePointCommandException 类的新实例。

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)

参数

message
String

解释异常原因的错误消息。

innerException
Exception

导致当前异常的异常。 innerException如果 参数不是 Visual Basic) 中的 null 引用 (Nothing,则在处理内部异常的块中catch引发当前异常。

适用于

SharePointCommandException(String, String, String, String)

使用指定的错误消息、完整类型名称和原始堆栈跟踪来初始化 SharePointCommandException 类的新实例。

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)

参数

message
String

解释异常原因的错误消息。

commandId
String

引发异常的命令的 ID。

fullTypeName
String

引发异常的命令类的完整类型名称。

originalStackTrace
String

vssphost4.exe 进程中异常的原始堆栈跟踪。

适用于

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

使用指定的错误消息、完整类型名称、原始堆栈跟踪和对导致该异常的内部异常的引用来初始化 SharePointCommandException 类的新实例。

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)

参数

message
String

解释异常原因的错误消息。

commandId
String

引发异常的命令的 ID。

fullTypeName
String

引发异常的命令类的完整类型名称。

originalStackTrace
String

vssphost4.exe 进程中异常的原始堆栈跟踪。

innerException
Exception

导致当前异常的异常。 innerException如果 参数不是 Visual Basic) 中的 null 引用 (Nothing,则在处理内部异常的块中catch引发当前异常。

适用于