SqlSmoObject-Klasse

The SqlSmoObject object represents all SQL Server objects.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Mehr…

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<TypeConverterAttribute(GetType(LocalizableTypeConverter))> _
Public MustInherit Class SqlSmoObject _
    Inherits SmoObjectBase _
    Implements ISfcPropertyProvider, ISfcNotifyPropertyMetadataChanged, INotifyPropertyChanged, IRefreshable,  _
    IAlienObject
'Usage
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

Der SqlSmoObject-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Geschützte Methode SqlSmoObject Initializes a new instance of the SqlSmoObject class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Geschützte Eigenschaft ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option.
Geschützte Eigenschaft IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server.
Geschützte Eigenschaft ObjectInSpace Gets the Boolean property value that specifies whether the object exists in isolation, or whether it is directly or indirectly connected to the instance of SQL Server.
Öffentliche Eigenschaft Properties Gets a collection of Property objects that represent the object properties.
Geschützte Eigenschaft ScalarResult Gets the scalar result for the referenced object.
Öffentliche Eigenschaft State Gets the state of the referenced object. (Geerbt von SmoObjectBase.)
Öffentliche Eigenschaft Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object.
Öffentliche Eigenschaft UserData Gets or sets user-defined data associated with the referenced object. (Geerbt von SmoObjectBase.)

Zum Anfang

Methoden

  Name Beschreibung
Geschützte Methode AddDatabaseContext Add the database context to the collection of queries identified by the queries parameter.
Geschützte Methode AlterImpl Activates the object altered event.
Geschützte Methode AlterImplWorker Calls the Alter methods.
Geschützte Methode BindDefaultImpl Binds the default items identified by the parameters.
Geschützte Methode BindRuleImpl Binds the rule schema to the rule and columns identified by the parameters.
Geschützte Methode CheckObjectState() Validates the state of the referenced object.
Geschützte Methode CheckObjectState(Boolean) Validates the state of the referenced object with the option to specify that an exception is thrown if the object is not yet created.
Geschützte Methode CheckObjectStateImpl Checks the state of a SqlSmoObject.
Geschützte Methode CheckVersion100 Checks whether version of SQL Server is SQL Server 2008.
Geschützte Methode CheckVersion110() Checks whether version of SQL Server is SQL Server 2012.
Geschützte Methode CheckVersion110(String) Checks whether the version of SQL Server is SQL Server 2012 with the specified name.
Geschützte Methode CheckVersion80 Checks the validity of the object on SQL Server 2000.
Geschützte Methode CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3.
Geschützte Methode CheckVersion90 Check the validity of the object on SQL Server 2005.
Geschützte Methode CheckVersionBelow110 Checks whether version of SQL Server is before SQL Server 2012.
Geschützte Methode CheckVersionBelow90 Checks whether version of SQL Server is before SQL Server 2005.
Geschützte Methode CleanObject Sets the object to its unmodified state.
Geschützte Methode CreateImpl Creates an object with scripting options.
Öffentliche Methode Discover Discovers a list of type Object.
Geschützte Methode DropImpl Drops a SqlSmoObject.
Geschützte Methode DropImplWorker Calls the drop methods.
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode ExecuteNonQuery Executes a batch of statements that does not return a result set.
Geschützte Methode Finalize (Geerbt von Object.)
Geschützte Methode FormatSqlVariant Formats an object as SqlVariant type.
Geschützte Methode GenerateAlterEvent() Generates the alter event with the specified value.
Geschützte Methode GenerateAlterEvent(Urn, Object) Generates alter event with the specified URN and inner object value.
Öffentliche MethodeStatisches Element GetChildType Gets the type of a child element.
Geschützte Methode GetContextDB Gets the context database that is associated with this object.
Geschützte Methode GetDBName Gets the database name that is associated with the object.
Geschützte Methode GetFragOptionString Gets a FragmentationOption object as a string value.
Öffentliche Methode GetHashCode (Geerbt von Object.)
Geschützte Methode GetPropValue Gets a property value of the SqlSmoObject object.
Geschützte Methode GetPropValueOptional Gets a property value of the SqlSmoObject object.
Geschützte Methode GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object.
Geschützte Methode GetRealValue Gets a property value of the SqlSmoObject object.
Geschützte Methode GetServerName Gets the name of the instance of SQL Server with which the object is associated.
Geschützte Methode GetServerObject Gets the server of the SqlSmoObject object.
Geschützte Methode GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated.
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche MethodeStatisches Element GetTypeFromUrnSkeleton Gets the type from the Urn object specified by the parameter.
Geschützte Methode GetUrnRecursive(StringBuilder) Assigns an Urn object of the SqlSmoObject object.
Geschützte Methode GetUrnRecursive(StringBuilder, UrnIdOption) Assigns an Urn object of the SqlSmoObject object.
Geschützte Methode ImplInitialize Initializes the fields of the SqlSmoObject object.
Öffentliche Methode Initialize() Initializes the object and forces the properties be loaded.
Öffentliche Methode Initialize(Boolean) Initializes the object and forces the properties be loaded.
Geschützte MethodeStatisches Element IsCollectionDirty Determines whether any object in the SqlSmoObject collection has been modified.
Geschützte Methode IsObjectDirty Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server.
Geschützte Methode IsObjectInitialized Verifies whether the object has been initialized.
Geschützte Methode IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server.
Geschützte Methode IsVersion80SP3 Determines whether the version of SQL Server is SQL Server 2000 with SP3.
Geschützte Methode IsVersion90AndAbove Determines whether the version of SQL Server is SQL Server 2005 or later.
Geschützte Methode MarkDropped Sets the SqlSmoState to dropped.
Geschützte Methode MarkForDropImpl Sets the SqlSmoState for drop operation.
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode PostAlter The method that is activated after the SqlSmoObject is altered.
Geschützte Methode PostCreate The method that is activated after the SqlSmoObject is created.
Geschützte Methode PostDrop The method that is activated after the SqlSmoObject is dropped.
Öffentliche Methode Refresh Refreshes the object and retrieves properties when the object is next accessed.
Geschützte Methode ScriptImpl() Gets a collection of scripts of the SqlSmoObject.
Geschützte Methode ScriptImpl(ScriptingOptions) Gets a collection of scripts of the SqlSmoObject.
Geschützte Methode SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter.
Öffentliche Methode ToString Returns a String that represents the referenced object. (Überschreibt Object.ToString().)
Geschützte Methode TouchImpl Not implemented.
Geschützte MethodeStatisches Element Trace Traces the object.
Geschützte Methode UnbindDefaultImpl Unbinds the default columns of the SqlSmoObject.
Geschützte Methode UnbindRuleImpl Unbinds rules of the SqlSmoObject.
Geschützte MethodeStatisches Element UpdateCollectionState2 Updates the collection state of the SqlSmoObject.
Öffentliche Methode Validate Validates the state of an object. (Geerbt von SmoObjectBase.)

Zum Anfang

Ereignisse

  Name Beschreibung
Öffentliches Ereignis PropertyChanged Represents the event that occurs when a property is changed.
Öffentliches Ereignis PropertyMetadataChanged Represents the event that occurs when property metadata changes.

Zum Anfang

Felder

  Name Beschreibung
Geschütztes Feld m_ExtendedProperties Represents a property that is defined to extend the properties provided by a SqlSmoObject.
Geschütztes Feld singletonParent Represents the singleton parent.

Zum Anfang

Explizite Schnittstellenimplementierungen

  Name Beschreibung
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.Discover Discovers any dependencies. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetDomainRoot Returns the root of the domain.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetParent Gets the parent of this object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetPropertyType Gets the type of the specified property.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetPropertyValue Gets the value of the specified property.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. Verweisen Sie nicht direkt im Code auf dieses Element. Unterstützt die SQL Server-Infrastruktur.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value.
Explizite SchnittstellenimplementierungPrivate Methode IAlienObject.SetPropertyValue Sets the property value.
Explizite SchnittstellenimplementierungPrivate Methode ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object.

Zum Anfang

Hinweise

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

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.  

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.Agent.JobServer
      Microsoft.SqlServer.Management.Smo.AvailabilityGroupListenerIPAddress
      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.DatabaseReplicaState
      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