ObjectAlreadyExistsException 构造函数 (String, String)

Initializes a new instance of the ObjectAlreadyExistsException class with the specified type name and facet.

命名空间:  Microsoft.SqlServer.Management.Dmf
程序集:  Microsoft.SqlServer.Dmf(在 Microsoft.SqlServer.Dmf.dll 中)

语法

声明
Public Sub New ( _
    objectType As String, _
    objectName As String _
)
用法
Dim objectType As String 
Dim objectName As String 

Dim instance As New ObjectAlreadyExistsException(objectType, _
    objectName)
public ObjectAlreadyExistsException(
    string objectType,
    string objectName
)
public:
ObjectAlreadyExistsException(
    String^ objectType, 
    String^ objectName
)
new : 
        objectType:string * 
        objectName:string -> ObjectAlreadyExistsException
public function ObjectAlreadyExistsException(
    objectType : String, 
    objectName : String
)

参数

  • objectType
    类型:System.String
    A String value that specifies the type of object that already exists.
  • objectName
    类型:System.String
    A String value that specifies the name of the object that already exists.

注释

仅 Microsoft .NET Framework 的 2.0 版本支持此命名空间、类或成员。

示例

处理 SMO 异常

请参阅

参考

ObjectAlreadyExistsException 类

ObjectAlreadyExistsException 重载

Microsoft.SqlServer.Management.Dmf 命名空间