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


Класс SqlSmoObject

The SqlSmoObject object represents all SQL Server objects.

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

Синтаксис

'Декларация
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
Public MustInherit Class SqlSmoObject _
    Inherits SmoObjectBase _
    Implements ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, IRefreshable,  _
    IAlienObject
'Применение
Dim instance As SqlSmoObject
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
public abstract class SqlSmoObject : SmoObjectBase, 
    ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, IRefreshable, IAlienObject
[TypeConverterAttribute(typeof(LocalizableTypeConverter))]
public ref class SqlSmoObject abstract : public SmoObjectBase, 
    ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, IRefreshable, IAlienObject
[<AbstractClassAttribute>]
[<TypeConverterAttribute(typeof(LocalizableTypeConverter))>]
type SqlSmoObject =  
    class
        inherit SmoObjectBase
        interface ISfcPropertyProvider
        interface ISfcNotifyPropertyMetadataChanged
        interface INotifyPropertyChanged
        interface IRefreshable
        interface IAlienObject
    end
public abstract class SqlSmoObject extends SmoObjectBase implements ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, IRefreshable, IAlienObject

Замечания

The SqlSmoObject is a generic object that is used to referenced objects that are not of a specified type. The SqlSmoObject is also used as a base class.

Thread Safety

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

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

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo. . :: . .SmoObjectBase
    Microsoft.SqlServer.Management.Smo..::..SqlSmoObject
      Microsoft.SqlServer.Management.Smo.Agent. . :: . .JobServer
      Microsoft.SqlServer.Management.Smo.Broker. . :: . .ServiceBroker
      Microsoft.SqlServer.Management.Smo. . :: . .DatabaseActiveDirectory
      Microsoft.SqlServer.Management.Smo. . :: . .DatabaseEncryptionKey
      Microsoft.SqlServer.Management.Smo. . :: . .DatabaseOptions
      Microsoft.SqlServer.Management.Smo. . :: . .EndpointPayload
      Microsoft.SqlServer.Management.Smo. . :: . .EndpointProtocol
      Microsoft.SqlServer.Management.Smo. . :: . .FullTextIndex
      Microsoft.SqlServer.Management.Smo. . :: . .Information
      Microsoft.SqlServer.Management.Smo.Mail. . :: . .SqlMail
      Microsoft.SqlServer.Management.Smo. . :: . .MasterKey
      Microsoft.SqlServer.Management.Smo. . :: . .MessageObjectBase
      Microsoft.SqlServer.Management.Smo. . :: . .NamedSmoObject
      Microsoft.SqlServer.Management.Smo. . :: . .PhysicalPartition
      Microsoft.SqlServer.Management.Smo. . :: . .ResourceGovernor
      Microsoft.SqlServer.Management.Smo. . :: . .Server
      Microsoft.SqlServer.Management.Smo. . :: . .ServerActiveDirectory
      Microsoft.SqlServer.Management.Smo. . :: . .ServerProxyAccount
      Microsoft.SqlServer.Management.Smo. . :: . .ServiceMasterKey
      Microsoft.SqlServer.Management.Smo. . :: . .Settings
      Microsoft.SqlServer.Management.Smo. . :: . .UserOptions

Потоковая защита

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