共用方式為


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 命名空間