Поделиться через


Класс RegSvrSmoObject

Примечание. Этот API-интерфейс устарел.

The RegSvrSmoObject class is a class used in the construction Microsoft SQL Server registered server objects.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.RegisteredServers.RegSvrSmoObject
      Microsoft.SqlServer.Management.Smo.RegisteredServers.RegisteredServer
      Microsoft.SqlServer.Management.Smo.RegisteredServers.ServerGroupBase

Пространство имен:  Microsoft.SqlServer.Management.Smo.RegisteredServers
Сборка:  Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)

Синтаксис

'Декларация
<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")> _
Public MustInherit Class RegSvrSmoObject _
    Inherits SmoObjectBase
'Применение
Dim instance As RegSvrSmoObject
[ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public abstract class RegSvrSmoObject : SmoObjectBase
[ObsoleteAttribute(L"Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")]
public ref class RegSvrSmoObject abstract : public SmoObjectBase
[<AbstractClassAttribute>]
[<ObsoleteAttribute("Instead use namespace Microsoft.SqlServer.Management.RegisteredServers")>]
type RegSvrSmoObject =  
    class 
        inherit SmoObjectBase 
    end
public abstract class RegSvrSmoObject extends SmoObjectBase

Тип RegSvrSmoObject обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Защищенный метод RegSvrSmoObject() Initializes a new instance of the RegSvrSmoObject object.
Защищенный метод RegSvrSmoObject(RegSvrCollectionBase, String) Initializes a new instance of the RegSvrSmoObject object based on the specified parent column and name.

В начало

Свойства

  Имя Описание
Открытое свойство Name Gets or sets the name of the object.
Открытое свойство Properties Gets the properties associated with the object.
Открытое свойство State Gets the state of the referenced object. (Производный от SmoObjectBase.)
Открытое свойство Urn Gets the Urn object that represents the object.
Защищенное свойство UrnSkeleton Gets the Urn object that represents the object.
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Производный от SmoObjectBase.)

В начало

Методы

  Имя Описание
Защищенный метод CheckObjectState Checks the state of the object.
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Защищенный метод ImplInitialize Initializes the object.
Открытый метод Initialize Initializes the object.
Защищенный метод IsObjectInitialized Gets a Boolean value that specifies whether the object was initialized.
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод Refresh Refreshes the properties of the object.
Защищенный метод SetParentImpl Sets a parent.
Открытый метод ToString (Производный от Object.)
Защищенный методСтатический элемент Trace Sets a trace text.
Защищенный метод UpdateObjectState Gets the updated object state.
Открытый метод Validate Validates the state of an object. (Производный от SmoObjectBase.)

В начало

Замечания

To get or set RegSvrSmoObject object properties, users must be a member of the db_owner fixed database role or the sysadmin fixed server role.

To initialize or refresh the object, users must be a member of the db_owner fixed database role or the sysadmin fixed server role.

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Smo.RegisteredServers

Другие ресурсы

Управление зарегистрированными серверами

sp_ActiveDirectory_Obj (Transact-SQL)