Classe Index

The Index object represents a SQL Server index.

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

Syntaxe

'Déclaration
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Index _
    Inherits ScriptNameObjectBase _
    Implements ICreatable, IDroppable, IMarkForDrop, IAlterable,  _
    IRenamable, IExtendedProperties, IScriptable, ISfcSupportsDesignMode
'Utilisation
Dim instance As Index
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class Index : ScriptNameObjectBase, 
    ICreatable, IDroppable, IMarkForDrop, IAlterable, IRenamable, 
    IExtendedProperties, IScriptable, ISfcSupportsDesignMode
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute]
public ref class Index sealed : public ScriptNameObjectBase, 
    ICreatable, IDroppable, IMarkForDrop, IAlterable, IRenamable, 
    IExtendedProperties, IScriptable, ISfcSupportsDesignMode
[<SealedAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
[<PhysicalFacetAttribute>]
type Index =  
    class
        inherit ScriptNameObjectBase
        interface ICreatable
        interface IDroppable
        interface IMarkForDrop
        interface IAlterable
        interface IRenamable
        interface IExtendedProperties
        interface IScriptable
        interface ISfcSupportsDesignMode
    end
public final class Index extends ScriptNameObjectBase implements ICreatable, IDroppable, IMarkForDrop, IAlterable, IRenamable, IExtendedProperties, IScriptable, ISfcSupportsDesignMode

Le type Index expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique Index() () () () Initializes a new instance of the Index class.
Méthode publique Index(SqlSmoObject, String) Initializes a new instance of the Index class on the specified parent object and with the specified name.

Haut de la page

Propriétés

  Nom Description
Propriété publique BoundingBoxXMax Specifies the x-coordinate of the upper right corner of a bounding box
Propriété publique BoundingBoxXMin Specifies the x-coordinate of the lower-left corner of a bounding box.
Propriété publique BoundingBoxYMax Specifies the y-coordinate of upper-right corner of a bounding box.
Propriété publique BoundingBoxYMin Specifies the y-coordinate of the lower-left corner of a bounding box.
Propriété publique CellsPerObject Defines the maximum number of cells that tessellation can count per object.
Propriété publique CompactLargeObjects Gets or sets the Boolean property value that specifies whether to compact the large object (LOB) data in the index.
Propriété publique DisallowPageLocks Gets or sets the Boolean property value that specifies whether the index allows page locks.
Propriété publique DisallowRowLocks Gets or sets the Boolean property value that specifies whether the index allows row locks.
Propriété publique Events Gets the index events supported by the Index object.
Propriété protégée ExecuteForScalar Obtient ou définit la valeur de la propriété Boolean qui spécifie si l'objet est défini selon l'option permettant l'exécution qui retourne une valeur scalaire. (hérité de SqlSmoObject.)
Propriété publique ExtendedProperties Represents a collection of ExtendedProperty objects. Each ExtendedProperty object represents an extended property defined on the Index object.
Propriété publique FileGroup Gets or sets the filegroup where the index pages are stored.
Propriété publique FileStreamFileGroup Gets or Sets the file group name for the index.
Propriété publique FileStreamPartitionScheme Gets or Sets the partition scheme name for the index.
Propriété publique FillFactor Gets or sets the percentage of an index page to fill when the index is created or re-created.
Propriété publique FilterDefinition Gets or sets the String value that contains the definition for the filter.
Propriété publique HasCompressedPartitions Gets or sets the Boolean property value that specifies whether the index has compressed partitions.
Propriété publique HasFilter Gets the Boolean property value that specifies whether the index has a filter defined for a range of index values.
Propriété publique ID Gets the index ID value that uniquely identifies the index within the database.
Propriété publique IgnoreDuplicateKeys Gets or sets the Boolean property value that specifies whether the index ignores duplicate keys.
Propriété publique IndexedColumns Gets a collection of IndexedColumn objects that represent all the columns participating in the index.
Propriété publique IndexKeyType Gets or sets the index key type.
Propriété publique IsClustered Gets or sets the Boolean property value that specifies whether the index is clustered.
Propriété publique IsDisabled Gets or sets the Boolean property value that specifies whether the index is disabled.
Propriété publique IsFullTextKey Gets the Boolean value that specifies whether the index is enabled for row identification in Microsoft Search.
Propriété publique IsIndexOnComputed Gets the Boolean property value that specifies whether the index is based on a computed column.
Propriété publique IsIndexOnTable Gets the Boolean property value that specifies whether the index is defined for a table or a view.
Propriété publique IsPartitioned Gets the Boolean property value that specifies whether the index is stored in a partitioned scheme.
Propriété publique IsSpatialIndex Specifies if an index is a Spatial Index
Propriété publique IsSystemNamed Gets the Boolean property value that specifies whether the index was named automatically by the system.
Propriété publique IsSystemObject Gets the Boolean property value that specifies whether the index is a system object.
Propriété protégée IsTouched Obtient la valeur de la propriété Boolean qui spécifie si les propriétés de l'objet ont été mises à jour mais n'ont pas encore été rendues persistantes sur le serveur. (hérité de SqlSmoObject.)
Propriété publique IsUnique Gets or sets the Boolean property value that specifies whether the index is unique or not.
Propriété publique IsXmlIndex Gets or sets the Boolean property value that specifies whether the index is an XML index.
Propriété publique Level1Grid Specifies the first level of decomposition for a geometry data type.
Propriété publique Level2Grid Specifies the second level of decomposition for a geometry data type.
Propriété publique Level3Grid Specifies the third level of decomposition for a geometry data type.
Propriété publique Level4Grid Specifies the fourth level of decomposition for a geometry data type.
Propriété publique MaximumDegreeOfParallelism Gets or sets the maximum number of processors that can be used when running a query that uses the index.
Propriété publique Name Gets or sets the name of the index. (remplace NamedSmoObject. . :: . .Name.)
Propriété publique NoAutomaticRecomputation Gets or sets the Boolean property value that specifies whether statistics are regenerated when an index is created.
Propriété protégée ObjectInSpace Obtient la valeur de la propriété Boolean qui spécifie si l'objet existe dans l'isolation, ou s'il est connecté directement ou indirectement à l'instance de SQL Server. (hérité de SqlSmoObject.)
Propriété publique OnlineIndexOperation Gets or sets the Boolean property value that specifies whether the index will be kept online during index operations thus allowing access to the data.
Propriété publique PadIndex Gets or sets the Boolean property value that specifies whether space is left open on each page of the intermediate levels of the index.
Propriété publique Parent Gets or sets the SqlSmoObject object that is the parent of the Index object.
Propriété publique ParentXmlIndex Gets or sets the parent of an XML index.
Propriété publique PartitionScheme Gets or sets the partition scheme associated with the index.
Propriété publique PartitionSchemeParameters Represents a collection of PartitionSchemeParameter objects. Each PartitionSchemeParameter object represents a parameter in the partition scheme associated with the index.
Propriété publique PhysicalPartitions Gets a collection of PhysicalPartition objects that represent all the physical partitions on which the index is stored.
Propriété publique Properties Obtient une collection d'objets Property qui représentent les propriétés de l'objet. (hérité de SqlSmoObject.)
Propriété protégée ScalarResult Obtient le résultat scalaire pour l'objet référencé. (hérité de SqlSmoObject.)
Propriété publique SecondaryXmlIndexType Gets or sets the secondary XML index type.
Propriété publique SortInTempdb Gets or sets the Boolean property value that specifies whether the index is sorted using the tempdb database for intermediate storage of data.
Propriété publique SpaceUsed Gets or sets the disk space used to store the index data in kilobytes.
Propriété publique SpatialIndexType Gets or sets the Spatial Index Type for a column.
Propriété publique State Gets the state of the referenced object. (hérité de SmoObjectBase.)
Propriété publique Urn Obtient la valeur URN (Uniform Resource Name) qui identifie de façon unique l'objet. (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(StringCollection) Ajoute le contexte de base de données à la collection de requêtes identifiée par le paramètre queries. (hérité de SqlSmoObject.)
Méthode protégée AddDatabaseContext(StringCollection, ScriptingOptions) Ajoute le contexte de base de données à la collection de requêtes identifiée par le paramètre queries, à l'aide des options de script spécifiées. (hérité de SqlSmoObject.)
Méthode publique Alter() () () () Updates any Index object property changes on the instance of SQL Server.
Méthode publique Alter(IndexOperation) Updates any Index object property changes on the instance of SQL Server for a specified index operation.
Méthode publique AlterAllIndexes Updates any Index object property changes for all indexes on the instance of SQL Server for a specified index operation.
Méthode protégée AlterImpl Active l'événement d'objet modifié. (hérité de SqlSmoObject.)
Méthode protégée AlterImplFinish Méthode appelée lorsque l'événement d'objet modifié est terminé. (hérité de SqlSmoObject.)
Méthode protégée AlterImplInit Méthode appelée lorsque l'événement d'objet modifié est initialisé. (hérité de SqlSmoObject.)
Méthode protégée AlterImplWorker Appelle les méthodes de modification. (hérité de SqlSmoObject.)
Méthode protégée AppendCommaText Appends text, optionally separated by a comma. (hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithCommaText Appends text, optionally separated by a comma. (hérité de ScriptNameObjectBase.)
Méthode protégée AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (hérité de ScriptNameObjectBase.)
Méthode protégée AutoGenerateName Generates a name based on the object Guid. (hérité de ScriptNameObjectBase.)
Méthode protégée BindDefaultImpl Lie les éléments par défaut identifiés par les paramètres. (hérité de SqlSmoObject.)
Méthode protégée BindRuleImpl Lie le schéma de règle à la règle et aux colonnes identifiées par les paramètres. (hérité de SqlSmoObject.)
Méthode protégée CheckCollation Vérifie l'ordre des options de script par la méthode de classement identifiée par le paramètre collationName. (hérité de SqlSmoObject.)
Méthode publique CheckIndex Tests the integrity of database pages that store the index.
Méthode publique CheckIndexWithResult Tests the integrity of database pages that store the index.
Méthode protégée CheckObjectDirty Checks whether object has been modified and not persisted. (hérité de ScriptNameObjectBase.)
Méthode protégée CheckObjectState() () () () Valide l'état de l'objet référencé. (hérité de SqlSmoObject.)
Méthode protégée CheckObjectState(Boolean) Valide l'état de l'objet référencé avec l'option permettant de spécifier qu'une exception est levée si l'objet n'est pas encore créé. (hérité de SqlSmoObject.)
Méthode protégée CheckObjectStateImpl Vérifie l'état de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée CheckTextCorectness Checks text for correctness against the parameters. (hérité de ScriptNameObjectBase.)
Méthode protégée CheckTextModeSupport Checks mode of support. (hérité de ScriptNameObjectBase.)
Méthode protégée CheckVersion100 Vérifie si la version de SQL Server est SQL Server 2008. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion80 Vérifie la validité de l'objet sur SQL Server 2000. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion80SP3 Vérifie la validité de l'objet sur SQL Server 2000 SP3. (hérité de SqlSmoObject.)
Méthode protégée CheckVersion90 Vérifie la validité de l'objet sur SQL Server 2005. (hérité de SqlSmoObject.)
Méthode protégée CheckVersionBelow90 Vérifie si la version de SQL Server est antérieure à SQL Server 2005. (hérité de SqlSmoObject.)
Méthode protégée CleanObject Cleans the referenced object. (hérité de ScriptNameObjectBase.)
Méthode publique Create Creates an index on the instance of SQL Server as defined by the Index object.
Méthode protégée CreateImpl Crée un objet avec les options de script. (hérité de SqlSmoObject.)
Méthode protégée CreateImplFinish Méthode appelée lorsque l'événement de création est terminé. (hérité de SqlSmoObject.)
Méthode protégée CreateImplInit Méthode appelée lorsque l'événement de création est initialisé. (hérité de SqlSmoObject.)
Méthode publique Disable Disables the index.
Méthode publique Discover Découvre une liste de type Object. (hérité de SqlSmoObject.)
Méthode publique Drop Drops the index.
Méthode publique DropAndMove(String) Drops a clustered index and moves the underlying table data to the specified filegroup.
Méthode publique DropAndMove(String, StringCollection) Drops a clustered index and moves the underlying table data to the partition scheme with the specified partition scheme parameters.
Méthode protégée DropImpl Supprime un SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée DropImplWorker Appelle les méthodes de suppression. (hérité de SqlSmoObject.)
Méthode publique Enable Enables the index.
Méthode publique EnumFragmentation() () () () Enumerates a list of fragmentation information for the index using the default fast fragmentation option.
Méthode publique EnumFragmentation(FragmentationOption) Enumerates a list of fragmentation information for the index with the specified fragmentation option.
Méthode publique EnumFragmentation(FragmentationOption, Int32) Enumerates a list of fragmentation information for the index with the specified fragmentation option and partition number.
Méthode protégée EnumScriptImpl Énumère des scripts spécifiés par le paramètre so. (hérité de SqlSmoObject.)
Méthode protégée EnumScriptImplWorker Appelle les méthodes qui énumèrent des scripts spécifiés par le paramètre so. (hérité de SqlSmoObject.)
Méthode protégée EnumScriptImplWorkerSOChanged Retourne une chaîne IEnumerable qui décrit les options de script pour un objet. (hérité de SqlSmoObject.)
Méthode publique EnumStatistics Enumerates a list of statistical information for the index.
Méthode publique Equals (hérité de Object.)
Méthode protégée ExecuteNonQuery (hérité de SqlSmoObject.)
Méthode protégée Finalize (hérité de Object.)
Méthode protégée ForceTextModeOnTextBody Enforces text mode on the text body. (hérité de ScriptNameObjectBase.)
Méthode protégée FormatSqlVariant Met en forme un objet en tant que type SqlVariant. (hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceFileStreamScript Génère un script pour créer un fichier de données. (hérité de SqlSmoObject.)
Méthode protégée GenerateDataSpaceScript Génère un script pour allouer l'espace dans le fichier de données. (hérité de SqlSmoObject.)
Méthode protégée GetBindDefaultScript Obtient le script qui lie les valeurs par défaut spécifiées par les paramètres defName et defSchema. (hérité de SqlSmoObject.)
Méthode protégée GetBindRuleScript Obtient le script qui spécifie les règles de liaison. (hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Affecte un paramètre booléen du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Affecte une propriété booléenne du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetBraketNameForText Gets the bracket name. (hérité de ScriptNameObjectBase.)
Méthode protégée GetDateTimeParameter Affecte une propriété datetime du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetDateTimeParameterAsInt Affecte la propriété datetime du SqlSmoObject comme une valeur entière, si la propriété datetime n'est pas Null. (hérité de SqlSmoObject.)
Méthode protégée GetDBName Obtient le nom de la base de données associée à l'objet. (hérité de SqlSmoObject.)
Méthode protégée GetEnumParameter Affecte une propriété d'énumération du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetFragOptionString Obtient un objet FragmentationOption en tant que valeur de chaîne. (hérité de SqlSmoObject.)
Méthode protégée GetGuidParameter Affecte une propriété Guid du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode publique GetHashCode (hérité de Object.)
Méthode protégée GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. (hérité de ScriptNameObjectBase.)
Méthode protégée GetIsTextDirty Determines whether the text value is consistent with stored value. (hérité de ScriptNameObjectBase.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Affecte un paramètre du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Affecte un paramètre du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetPropValue Obtient une valeur de propriété de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptional Obtient une valeur de propriété de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetPropValueOptionalAllowNull Obtient une valeur de propriété de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetRealValue Obtient une valeur de propriété de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetScriptIncludeExists Gets the script including the test for existence of type being scripted. (hérité de ScriptNameObjectBase.)
Méthode protégée GetScriptingOptionsForCreate Obtient ScriptingOptions pour l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetServerName Obtient le nom de l'instance de SQL Server à laquelle l'objet est associé. (hérité de SqlSmoObject.)
Méthode protégée GetServerObject Obtient le serveur de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetSqlServerVersionName Obtient le nom de version de l'instance de SQL Server à laquelle l'objet est associé. (hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Affecte un paramètre de chaîne de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Affecte un paramètre de chaîne de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetTextBody() () () () Returns the text body. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTextBody(Boolean) Returns the text body. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) Gets the text of script object. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTextHeader Returns the text header. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTextMode Determines whether the script name is using text mode. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String) Gets the property as text. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTextProperty(String, ScriptingOptions) Gets the property as text. (hérité de ScriptNameObjectBase.)
Méthode protégée GetTimeSpanParameterAsInt Affecte un paramètre d'intervalle de temps de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode publique GetType (hérité de Object.)
Méthode protégée GetUrnRecursive(StringBuilder) Affecte un objet Urn de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée GetUrnRecursive(StringBuilder, UrnIdOption) Affecte un objet Urn de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée ImplInitialize Initialise les champs de l'objet SqlSmoObject. (hérité de SqlSmoObject.)
Méthode publique Initialize() () () () Initialise l'objet et force le chargement des propriétés. (hérité de SqlSmoObject.)
Méthode publique Initialize(Boolean) Initialise l'objet et force le chargement des propriétés. (hérité de SqlSmoObject.)
Méthode protégée IsObjectDirty Determines whether the referenced object is consistent with the stored object. (hérité de ScriptNameObjectBase.)
Méthode protégée IsObjectInitialized Vérifie si l'objet a été initialisé. (hérité de SqlSmoObject.)
Méthode protégée IsObjectInSpace Vérifie si l'objet est isolé ou connecté à l'instance de SQL Server. (hérité de SqlSmoObject.)
Méthode protégée IsVersion80SP3 Détermine si la version de SQL Server est SQL Server 2000 avec SP3. (hérité de SqlSmoObject.)
Méthode protégée IsVersion90AndAbove Détermine si la version de SQL Server est SQL Server 2005 ou une version ultérieure. (hérité de SqlSmoObject.)
Méthode protégée MarkDropped Définit l'objet SqlSmoState à supprimer. (hérité de SqlSmoObject.)
Méthode publique MarkForDrop Marks the index to be dropped the next time that the Alter method is run on the Index object's parent object.
Méthode protégée MarkForDropImpl Définit l'objet SqlSmoState à supprimer. (hérité de SqlSmoObject.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode protégée PostAlter Méthode activée après la modification du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée PostCreate Méthode activée après la création du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée PostDrop Méthode activée après la suppression du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode publique Rebuild() () () () Rebuilds the index.
Méthode publique Rebuild(Int32) Rebuilds the index on the partition with the specified partition number.
Méthode publique RebuildAllIndexes Rebuilds all the indexes.
Méthode publique RecalculateSpaceUsage Updates the disk resource usage of the index.
Méthode publique Recreate Re-creates the index.
Méthode publique Refresh Refreshes the Index object and its properties. (remplace ScriptNameObjectBase. . :: . .Refresh() () () ().)
Méthode publique Rename Renames the index.
Méthode protégée RenameImpl Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie. (hérité de NamedSmoObject.)
Méthode protégée RenameImplWorker Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie. (hérité de NamedSmoObject.)
Méthode publique Reorganize Reorganizes the index based on current property settings.
Méthode publique ReorganizeAllIndexes Reorganizes all the indexes based on current property settings.
Méthode publique Script() () () () Generates a Transact-SQL script that can be used to re-create the index.
Méthode publique Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the index as specified by the script options.
Méthode protégée ScriptAlter Modifie l'objet SqlSmoObject d'après les paramètres. (hérité de SqlSmoObject.)
Méthode protégée ScriptAnsiQI Scripts the database object in ANSI text. (hérité de ScriptNameObjectBase.)
Méthode protégée ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (hérité de NamedSmoObject.)
Méthode protégée ScriptCreate Modifie l'objet SqlSmoObject d'après les paramètres. (hérité de SqlSmoObject.)
Méthode protégée ScriptDdl Lève une exception InvalidSmoOperationException. (hérité de SqlSmoObject.)
Méthode protégée ScriptDrop Lève une exception InvalidSmoOperationException. (hérité de SqlSmoObject.)
Méthode protégée ScriptImpl() () () () Obtient une collection de scripts du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée ScriptImpl(ScriptingOptions) Obtient une collection de scripts du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée ScriptImplWorker Obtient une collection de scripts du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée ScriptInformativeHeaders Scripts the information headers. (hérité de ScriptNameObjectBase.)
Méthode protégée ScriptOwner Alters the script owner authorization. (hérité de NamedSmoObject.)
Méthode protégée ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (hérité de NamedSmoObject.)
Méthode protégée SetCollectionTextMode Sets the collection text mode. (hérité de ScriptNameObjectBase.)
Méthode protégée SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. (hérité de ScriptNameObjectBase.)
Méthode protégée SetParentImpl Définit le parent du SqlSmoObject sur le paramètre newParent. (hérité de SqlSmoObject.)
Méthode protégée SetSchemaOwned Sets the schema owned value. (hérité de NamedSmoObject.)
Méthode protégée SetTextBody Specifies the text body. (hérité de ScriptNameObjectBase.)
Méthode protégée SetTextHeader Specifies the text header. (hérité de ScriptNameObjectBase.)
Méthode protégée SetTextMode Specifies the text mode. (hérité de ScriptNameObjectBase.)
Méthode protégée SwitchTextMode Switches the text mode. (hérité de ScriptNameObjectBase.)
Méthode protégée ThrowIfTextIsDirtyForAlter Throws an exception of text has been modified and not persisted. (hérité de ScriptNameObjectBase.)
Méthode publique ToString Retourne un String qui représente l'objet référencé. (hérité de SqlSmoObject.)
Méthode protégée TouchImpl Non implémenté. (hérité de SqlSmoObject.)
Méthode protégée UnbindDefaultImpl Annule la liaison des colonnes par défaut du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode protégée UnbindRuleImpl Annule la liaison des règles du SqlSmoObject. (hérité de SqlSmoObject.)
Méthode publique UpdateStatistics() () () () Updates statistics for the referenced index.
Méthode publique UpdateStatistics(StatisticsScanType) Updates statistics for the referenced index with the specified statistics scan type.
Méthode publique UpdateStatistics(StatisticsScanType, Int32) Updates statistics for the referenced index with the specified statistics scan type and specified sample size.
Méthode publique UpdateStatistics(StatisticsScanType, Int32, Boolean) Updates statistics for the referenced index with the specified statistics scan type and specified sample size and with the option to recompute the statistics.
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 Représente l'événement qui se produit lorsqu'une propriété est modifiée. (hérité de SqlSmoObject.)
Événement public PropertyMetadataChanged Représente l'événement qui se produit lorsque les métadonnées de la propriété sont modifiées. (hérité de SqlSmoObject.)

Haut de la page

Champs

  Nom Description
Champ protégé m_ExtendedProperties Représente une propriété définie pour étendre les propriétés fournies par un SqlSmoObject. (hérité de SqlSmoObject.)
Champ protégé singletonParent Représente le parent de singleton. (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 Découvre les éventuelles dépendances. Ne référencez pas directement 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 Retourne la racine du domaine. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject. . :: . .GetParent Obtient le parent de cet objet. Ne référencez pas directement 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 Obtient le type de la propriété spécifiée. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject. . :: . .GetPropertyValue Obtient la valeur de la propriété spécifiée. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject. . :: . .GetUrn Obtient l'URN (Uniform Resource Name) de l'objet. Ne référencez pas directement 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 Obtient l'instance qui contient les informations relatives à l'objet de l'URN (Unified Resource Name) de l'objet. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject. . :: . .SetObjectState Définit l'état de l'objet sur la valeur SfcObjectState spécifiée. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée IAlienObject. . :: . .SetPropertyValue Définit la valeur de la propriété. (hérité de SqlSmoObject.)
Implémentation d'interface expliciteMéthode privée ISfcPropertyProvider. . :: . .GetPropertySet Obtient la référence d'interface au jeu de propriétés de cet objet. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server. (hérité de SqlSmoObject.)
Implémentation d'interface explicitePropriété privée ISfcSupportsDesignMode. . :: . .IsDesignMode Gets a Boolean value that indicates whether the object supports design mode.

Haut de la page

Notes

To get Index object properties, users can be a member of the public fixed server role.

To set Index object properties, create or drop an index, update statistics on an index, or rebuild, reorganize, or re-create an index, users must have one of the following:

  • ALTER permission on the parent table or view

  • Membership of the db_owner or the db_ddladmin fixed database roles

  • Membership of the sysadmin fixed server role

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.