Partager via


Classe NamedSmoObject

Represents the NamedSmoObject object represents a named SMO object.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.NamedSmoObject
        Plus...

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public Class NamedSmoObject _
    Inherits SqlSmoObject
'Utilisation
Dim instance As NamedSmoObject
public class NamedSmoObject : SqlSmoObject
public ref class NamedSmoObject : public SqlSmoObject
type NamedSmoObject =  
    class 
        inherit SqlSmoObject 
    end
public class NamedSmoObject extends SqlSmoObject

Le type NamedSmoObject expose les membres suivants.

Constructeurs

  Nom Description
Méthode protégée NamedSmoObject Initializes a new instance of the NamedSmoObject class.

Haut de la page

Propriétés

  Nom Description
Propriété protégée ExecuteForScalar Gets or sets the Boolean property value that specifies whether the object is set to the execute for scalar option. (hérité de SqlSmoObject.)
Propriété protégée IsTouched Gets the Boolean property value that specifies whether the object properties have been updated but not yet persisted on the server. (hérité de SqlSmoObject.)
Propriété publique Name Gets or sets the name of the object.
Propriété protégée 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. (hérité de SqlSmoObject.)
Propriété publique Properties Gets a collection of Property objects that represent the object properties. (hérité de SqlSmoObject.)
Propriété protégée ScalarResult Gets the scalar result for the referenced object. (hérité de SqlSmoObject.)
Propriété publique State Gets the state of the referenced object. (hérité de SmoObjectBase.)
Propriété publique Urn Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (hérité de SqlSmoObject.)
Propriété publique UserData Gets or sets user-defined data associated with the referenced object. (hérité de SmoObjectBase.)

Haut de la page

Méthodes

  Nom Description
Méthode protégée AddDatabaseContext Add the database context to the collection of queries identified by the queries parameter. (hérité de SqlSmoObject.)
Méthode protégée AlterImpl Activates the object altered event. (hérité de SqlSmoObject.)
Méthode protégée AlterImplWorker Calls the Alter methods. (hérité de SqlSmoObject.)
Méthode protégée BindDefaultImpl Binds the default items identified by the parameters. (hérité de SqlSmoObject.)
Méthode protégée BindRuleImpl Binds the rule schema to the rule and columns identified by the parameters. (hérité de SqlSmoObject.)
Méthode protégée CheckObjectState() Validates the state of the referenced object. (hérité de SqlSmoObject.)
Méthode protégée 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. (hérité de SqlSmoObject.)
Méthode protégée CheckObjectStateImpl Checks the state of a SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion100 Checks whether version of SQL Server is SQL Server 2008. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion110() Checks whether version of SQL Server is SQL Server 2012. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion110(String) Checks whether the version of SQL Server is SQL Server 2012 with the specified name. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion80 Checks the validity of the object on SQL Server 2000. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion80SP3 Checks the validity of the object on SQL Server 2000 SP3. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion90 Check the validity of the object on SQL Server 2005. (hérité de SqlSmoObject.)
Méthode protégée CheckVersionBelow110 Checks whether version of SQL Server is before SQL Server 2012. (hérité de SqlSmoObject.)
Méthode protégée CheckVersionBelow90 Checks whether version of SQL Server is before SQL Server 2005. (hérité de SqlSmoObject.)
Méthode protégée CleanObject Sets the object to its unmodified state. (hérité de SqlSmoObject.)
Méthode protégée CreateImpl Creates an object with scripting options. (hérité de SqlSmoObject.)
Méthode publique Discover Discovers a list of type Object. (hérité de SqlSmoObject.)
Méthode protégée DropImpl Drops a SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée DropImplWorker Calls the drop methods. (hérité de SqlSmoObject.)
Méthode publique Equals (hérité de Object.)
Méthode protégée ExecuteNonQuery Executes a batch of statements that does not return a result set. (hérité de SqlSmoObject.)
Méthode protégée ExecuteRenameQuery Executes the rename query for the object.
Méthode protégée Finalize (hérité de Object.)
Méthode protégée FormatSqlVariant Formats an object as SqlVariant type. (hérité de SqlSmoObject.)
Méthode protégée GenerateAlterEvent() Generates the alter event with the specified value. (hérité de SqlSmoObject.)
Méthode protégée GenerateAlterEvent(Urn, Object) Generates alter event with the specified URN and inner object value. (hérité de SqlSmoObject.)
Méthode protégée GetContextDB Gets the context database that is associated with this object. (hérité de SqlSmoObject.)
Méthode protégée GetDBName Gets the database name that is associated with the object. (hérité de SqlSmoObject.)
Méthode protégée GetFragOptionString Gets a FragmentationOption object as a string value. (hérité de SqlSmoObject.)
Méthode publique GetHashCode (hérité de Object.)
Méthode protégée GetPropValue Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptional Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptionalAllowNull Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetRealValue Gets a property value of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetServerName Gets the name of the instance of SQL Server with which the object is associated. (hérité de SqlSmoObject.)
Méthode protégée GetServerObject Gets the server of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetSqlServerVersionName Gets the version name of the instance of SQL Server with which the object is associated. (hérité de SqlSmoObject.)
Méthode publique GetType (hérité de Object.)
Méthode protégée GetUrnRecursive(StringBuilder) Assigns an Urn object of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée GetUrnRecursive(StringBuilder, UrnIdOption) Assigns an Urn object of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode protégée ImplInitialize Initializes the fields of the SqlSmoObject object. (hérité de SqlSmoObject.)
Méthode publique Initialize() Initializes the object and forces the properties be loaded. (hérité de SqlSmoObject.)
Méthode publique Initialize(Boolean) Initializes the object and forces the properties be loaded. (hérité de SqlSmoObject.)
Méthode protégée IsObjectDirty Verifies whether the object properties have been modified and the changes have not yet been persisted on the instance of SQL Server. (hérité de SqlSmoObject.)
Méthode protégée IsObjectInitialized Verifies whether the object has been initialized. (hérité de SqlSmoObject.)
Méthode protégée IsObjectInSpace Verifies whether the object is isolated or connected to the instance of SQL Server. (hérité de SqlSmoObject.)
Méthode protégée IsVersion80SP3 Determines whether the version of SQL Server is SQL Server 2000 with SP3. (hérité de SqlSmoObject.)
Méthode protégée IsVersion90AndAbove Determines whether the version of SQL Server is SQL Server 2005 or later. (hérité de SqlSmoObject.)
Méthode protégée MarkDropped Sets the SqlSmoState to dropped. (hérité de SqlSmoObject.)
Méthode protégée MarkForDropImpl Sets the SqlSmoState for drop operation. (hérité de SqlSmoObject.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégée PostAlter The method that is activated after the SqlSmoObject is altered. (hérité de SqlSmoObject.)
Méthode protégée PostCreate The method that is activated after the SqlSmoObject is created. (hérité de SqlSmoObject.)
Méthode protégée PostDrop The method that is activated after the SqlSmoObject is dropped. (hérité de SqlSmoObject.)
Méthode publique Refresh Refreshes the object and retrieves properties when the object is next accessed. (hérité de SqlSmoObject.)
Méthode protégée RenameImpl This method supports the SMO infrastructure and is not intended to be used directly from your code.
Méthode protégée RenameImplWorker Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie.
Méthode protégée ScriptImpl() Gets a collection of scripts of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée ScriptImpl(ScriptingOptions) Gets a collection of scripts of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée SetParentImpl Sets the parent of the SqlSmoObject to the newParent parameter. (hérité de SqlSmoObject.)
Méthode protégée SetSchemaOwned Sets the schema owned value.
Méthode publique ToString Returns a String that represents the referenced object. (hérité de SqlSmoObject.)
Méthode protégée TouchImpl Not implemented. (hérité de SqlSmoObject.)
Méthode protégée UnbindDefaultImpl Unbinds the default columns of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée UnbindRuleImpl Unbinds rules of the SqlSmoObject. (hérité de SqlSmoObject.)
Méthode publique Validate Validates the state of an object. (hérité de SmoObjectBase.)

Haut de la page

Événements

  Nom Description
Événement public PropertyChanged Represents the event that occurs when a property is changed. (hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged Represents the event that occurs when property metadata changes. (hérité de SqlSmoObject.)

Haut de la page

Champs

  Nom Description
Champ protégé m_ExtendedProperties Represents a property that is defined to extend the properties provided by a SqlSmoObject. (hérité de SqlSmoObject.)
Champ protégé singletonParent Represents the singleton parent. (hérité de SqlSmoObject.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IAlienObject.Discover Discovers any dependencies. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetDomainRoot Returns the root of the domain. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetParent Gets the parent of this object. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetPropertyType Gets the type of the specified property. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetPropertyValue Gets the value of the specified property. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.GetUrn Gets the Unified Resource Name (URN) of the object. Ne faites pas directement référence à ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.Resolve Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.SetObjectState Sets the object state to the specified SfcObjectState value. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject.SetPropertyValue Sets the property value. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProvider.GetPropertySet Gets the interface reference to the set of properties of this object. (hérité de SqlSmoObject.)

Haut de la page

Notes

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Smo.SmoObjectBase
    Microsoft.SqlServer.Management.Smo.SqlSmoObject
      Microsoft.SqlServer.Management.Smo.NamedSmoObject
        Microsoft.SqlServer.Management.Smo.Agent.AgentObjectBase
        Microsoft.SqlServer.Management.Smo.AsymmetricKey
        Microsoft.SqlServer.Management.Smo.AvailabilityDatabase
        Microsoft.SqlServer.Management.Smo.AvailabilityGroup
        Microsoft.SqlServer.Management.Smo.AvailabilityGroupListener
        Microsoft.SqlServer.Management.Smo.AvailabilityReplica
        Microsoft.SqlServer.Management.Smo.Broker.MessageTypeMapping
        Microsoft.SqlServer.Management.Smo.Broker.ServiceContractMapping
        Microsoft.SqlServer.Management.Smo.Certificate
        Microsoft.SqlServer.Management.Smo.Credential
        Microsoft.SqlServer.Management.Smo.CryptographicProvider
        Microsoft.SqlServer.Management.Smo.DatabaseFile
        Microsoft.SqlServer.Management.Smo.FileGroup
        Microsoft.SqlServer.Management.Smo.ForeignKeyColumn
        Microsoft.SqlServer.Management.Smo.IndexedColumn
        Microsoft.SqlServer.Management.Smo.IndexedXmlPath
        Microsoft.SqlServer.Management.Smo.IndexedXmlPathNamespace
        Microsoft.SqlServer.Management.Smo.Language
        Microsoft.SqlServer.Management.Smo.LinkedServer
        Microsoft.SqlServer.Management.Smo.LinkedServerLogin
        Microsoft.SqlServer.Management.Smo.Mail.ConfigurationValue
        Microsoft.SqlServer.Management.Smo.OleDbProviderSettings
        Microsoft.SqlServer.Management.Smo.OrderColumn
        Microsoft.SqlServer.Management.Smo.PlanGuide
        Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase
        Microsoft.SqlServer.Management.Smo.StatisticColumn
        Microsoft.SqlServer.Management.Smo.SymmetricKey
        Microsoft.SqlServer.Management.Smo.SystemDataType