Costruttore ObjectAlreadyExistsException (String, String)

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

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    objectType As String, _
    objectName As String _
)
'Utilizzo
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
)

Parametri

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

Osservazioni

Questo spazio dei nomi, classe o membro è supportato solo nella versione 2.0 di Microsoft .NET Framework.

Esempi

Gestione delle eccezioni SMO

Vedere anche

Riferimento

ObjectAlreadyExistsException Classe

Overload ObjectAlreadyExistsException

Spazio dei nomi Microsoft.SqlServer.Management.Dmf