Конструктор 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