在 SharePoint 命令失败时引发的异常。
继承层次结构
System.Object
System.Exception
Microsoft.VisualStudio.SharePoint.SharePointCommandException
命名空间: Microsoft.VisualStudio.SharePoint
程序集: Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)
语法
声明
<SerializableAttribute> _
Public Class SharePointCommandException _
Inherits Exception
[SerializableAttribute]
public class SharePointCommandException : Exception
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 类的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
CommandId | 获取导致异常的命令 ID。 |
![]() |
Data | 获取一个提供用户定义的其他异常信息的键/值对的集合。 (继承自 Exception。) |
![]() |
FullTypeName | 获取导致异常的命令类的完整类型名称。 |
![]() |
HelpLink | 获取或设置指向此异常所关联帮助文件的链接。 (继承自 Exception。) |
![]() |
HResult | 获取或设置 HRESULT,它是分配给特定异常的编码数值。 (继承自 Exception。) |
![]() |
InnerException | 获取导致当前异常的 Exception 实例。 (继承自 Exception。) |
![]() |
Message | 获取描述当前异常的消息。 (继承自 Exception。) |
![]() |
OriginalStackTrace | 从 vssphost4.exe 进程中获取原始异常堆栈跟踪。 |
![]() |
Source | 获取或设置导致错误的应用程序或对象的名称。 (继承自 Exception。) |
![]() |
StackTrace | 获取调用堆栈上直接帧的字符串表示形式。 (继承自 Exception。) |
![]() |
TargetSite | 获取引发当前异常的方法。 (继承自 Exception。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | 确定指定的 Object 是否等于当前的 Object。 (继承自 Object。) |
![]() |
Finalize | 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetBaseException | 当在派生类中重写时,返回 Exception,它是一个或多个并发的异常的根源。 (继承自 Exception。) |
![]() |
GetHashCode | 用作特定类型的哈希函数。 (继承自 Object。) |
![]() |
GetObjectData | 使用有关异常的信息设置 SerializationInfo。 (重写 Exception.GetObjectData(SerializationInfo, StreamingContext)。) |
![]() |
GetType | 获取当前实例的运行时类型。 (继承自 Exception。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
ToString | 创建并返回当前异常的字符串表示形式。 (继承自 Exception。) |
页首
备注
SharePoint 命令是一些方法,SharePoint 工具扩展可使用这些方法调用 SharePoint 服务器对象模型。 SharePoint 命令由名为 vssphost4.exe 的 64 位进程执行。 在 vssphost4.exe 中引发任何异常作为 SharePointCommandException 返回到 SharePoint 命令。
有关 SharePoint 命令的更多信息,请参见调入 SharePoint 对象模型。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。