SharePointCommandException 构造函数 (String, Exception)

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

命名空间:  Microsoft.VisualStudio.SharePoint
程序集:  Microsoft.VisualStudio.SharePoint(在 Microsoft.VisualStudio.SharePoint.dll 中)

语法

声明
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
public SharePointCommandException(
    string message,
    Exception innerException
)

参数

  • message
    类型:System.String
    解释异常原因的错误消息。
  • innerException
    类型:System.Exception
    导致当前异常的异常。
    如果 innerException 参数不是 null 引用(Visual Basic 中为 Nothing),则在处理内部异常的 catch 块中将引发当前异常。

.NET Framework 安全性

请参见

参考

SharePointCommandException 类

SharePointCommandException 重载

Microsoft.VisualStudio.SharePoint 命名空间