Класс Index

The Index object represents a SQL Server index.

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

Синтаксис

'Декларация
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Index _
    Inherits ScriptNameObjectBase _
    Implements ICreatable, IDroppable, IMarkForDrop, IAlterable,  _
    IRenamable, IExtendedProperties, IScriptable, ISfcSupportsDesignMode
'Применение
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

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

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

  Имя Описание
Открытый метод Index() () () () Initializes a new instance of the Index class.
Открытый метод Index(SqlSmoObject, String) Initializes a new instance of the Index class on the specified parent object and with the specified name.

В начало

Свойства

  Имя Описание
Открытое свойство BoundingBoxXMax Specifies the x-coordinate of the upper right corner of a bounding box
Открытое свойство BoundingBoxXMin Specifies the x-coordinate of the lower-left corner of a bounding box.
Открытое свойство BoundingBoxYMax Specifies the y-coordinate of upper-right corner of a bounding box.
Открытое свойство BoundingBoxYMin Specifies the y-coordinate of the lower-left corner of a bounding box.
Открытое свойство CellsPerObject Defines the maximum number of cells that tessellation can count per object.
Открытое свойство CompactLargeObjects Gets or sets the Boolean property value that specifies whether to compact the large object (LOB) data in the index.
Открытое свойство DisallowPageLocks Gets or sets the Boolean property value that specifies whether the index allows page locks.
Открытое свойство DisallowRowLocks Gets or sets the Boolean property value that specifies whether the index allows row locks.
Открытое свойство Events Gets the index events supported by the Index object.
Защищенное свойство ExecuteForScalar Возвращает или задает значение свойства типа Boolean, указывающее, настроен ли объект для выполнения в скалярном режиме. (Производный от SqlSmoObject.)
Открытое свойство ExtendedProperties Represents a collection of ExtendedProperty objects. Each ExtendedProperty object represents an extended property defined on the Index object.
Открытое свойство FileGroup Gets or sets the filegroup where the index pages are stored.
Открытое свойство FileStreamFileGroup Gets or Sets the file group name for the index.
Открытое свойство FileStreamPartitionScheme Gets or Sets the partition scheme name for the index.
Открытое свойство FillFactor Gets or sets the percentage of an index page to fill when the index is created or re-created.
Открытое свойство FilterDefinition Gets or sets the String value that contains the definition for the filter.
Открытое свойство HasCompressedPartitions Gets or sets the Boolean property value that specifies whether the index has compressed partitions.
Открытое свойство HasFilter Gets the Boolean property value that specifies whether the index has a filter defined for a range of index values.
Открытое свойство ID Gets the index ID value that uniquely identifies the index within the database.
Открытое свойство IgnoreDuplicateKeys Gets or sets the Boolean property value that specifies whether the index ignores duplicate keys.
Открытое свойство IndexedColumns Gets a collection of IndexedColumn objects that represent all the columns participating in the index.
Открытое свойство IndexKeyType Gets or sets the index key type.
Открытое свойство IsClustered Gets or sets the Boolean property value that specifies whether the index is clustered.
Открытое свойство IsDisabled Gets or sets the Boolean property value that specifies whether the index is disabled.
Открытое свойство IsFullTextKey Gets the Boolean value that specifies whether the index is enabled for row identification in Microsoft Search.
Открытое свойство IsIndexOnComputed Gets the Boolean property value that specifies whether the index is based on a computed column.
Открытое свойство IsIndexOnTable Gets the Boolean property value that specifies whether the index is defined for a table or a view.
Открытое свойство IsPartitioned Gets the Boolean property value that specifies whether the index is stored in a partitioned scheme.
Открытое свойство IsSpatialIndex Specifies if an index is a Spatial Index
Открытое свойство IsSystemNamed Gets the Boolean property value that specifies whether the index was named automatically by the system.
Открытое свойство IsSystemObject Gets the Boolean property value that specifies whether the index is a system object.
Защищенное свойство IsTouched Возвращает значение свойства типа Boolean, указывающее, были ли свойства объекта обновлены, но еще не сохранены на сервере. (Производный от SqlSmoObject.)
Открытое свойство IsUnique Gets or sets the Boolean property value that specifies whether the index is unique or not.
Открытое свойство IsXmlIndex Gets or sets the Boolean property value that specifies whether the index is an XML index.
Открытое свойство Level1Grid Specifies the first level of decomposition for a geometry data type.
Открытое свойство Level2Grid Specifies the second level of decomposition for a geometry data type.
Открытое свойство Level3Grid Specifies the third level of decomposition for a geometry data type.
Открытое свойство Level4Grid Specifies the fourth level of decomposition for a geometry data type.
Открытое свойство MaximumDegreeOfParallelism Gets or sets the maximum number of processors that can be used when running a query that uses the index.
Открытое свойство Name Gets or sets the name of the index. (Переопределяет NamedSmoObject. . :: . .Name.)
Открытое свойство NoAutomaticRecomputation Gets or sets the Boolean property value that specifies whether statistics are regenerated when an index is created.
Защищенное свойство ObjectInSpace Возвращает значение свойства типа Boolean, указывающее, существует ли объект изолированно или же он явно или неявно подключен к экземпляру SQL Server. (Производный от SqlSmoObject.)
Открытое свойство 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.
Открытое свойство 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.
Открытое свойство Parent Gets or sets the SqlSmoObject object that is the parent of the Index object.
Открытое свойство ParentXmlIndex Gets or sets the parent of an XML index.
Открытое свойство PartitionScheme Gets or sets the partition scheme associated with the index.
Открытое свойство PartitionSchemeParameters Represents a collection of PartitionSchemeParameter objects. Each PartitionSchemeParameter object represents a parameter in the partition scheme associated with the index.
Открытое свойство PhysicalPartitions Gets a collection of PhysicalPartition objects that represent all the physical partitions on which the index is stored.
Открытое свойство Properties Возвращает коллекцию объектов Property, представляющих свойства объекта. (Производный от SqlSmoObject.)
Защищенное свойство ScalarResult Возвращает скалярный результат для объекта, на который ссылаются. (Производный от SqlSmoObject.)
Открытое свойство SecondaryXmlIndexType Gets or sets the secondary XML index type.
Открытое свойство SortInTempdb Gets or sets the Boolean property value that specifies whether the index is sorted using the tempdb database for intermediate storage of data.
Открытое свойство SpaceUsed Gets or sets the disk space used to store the index data in kilobytes.
Открытое свойство SpatialIndexType Gets or sets the Spatial Index Type for a column.
Открытое свойство State Gets the state of the referenced object. (Производный от SmoObjectBase.)
Открытое свойство Urn Возвращает значение адреса универсального имени ресурса (URN), которое однозначно идентифицирует объект. (Производный от SqlSmoObject.)
Открытое свойство UserData Gets or sets user-defined data associated with the referenced object. (Производный от SmoObjectBase.)

В начало

Методы

  Имя Описание
Защищенный метод AddDatabaseContext(StringCollection) Добавляет контекст базы данных в коллекцию запросов, определенную параметром queries. (Производный от SqlSmoObject.)
Защищенный метод AddDatabaseContext(StringCollection, ScriptingOptions) Добавляет контекст базы данных в коллекцию запросов, определяемую параметром queries при использовании указанных параметров создания скриптов. (Производный от SqlSmoObject.)
Открытый метод Alter() () () () Updates any Index object property changes on the instance of SQL Server.
Открытый метод Alter(IndexOperation) Updates any Index object property changes on the instance of SQL Server for a specified index operation.
Открытый метод AlterAllIndexes Updates any Index object property changes for all indexes on the instance of SQL Server for a specified index operation.
Защищенный метод AlterImpl Активирует событие изменения объекта. (Производный от SqlSmoObject.)
Защищенный метод AlterImplFinish Метод, вызываемый при завершении события изменения объекта. (Производный от SqlSmoObject.)
Защищенный метод AlterImplInit Метод, вызываемый при инициализации события изменения объекта. (Производный от SqlSmoObject.)
Защищенный метод AlterImplWorker Вызывает методы изменения. (Производный от SqlSmoObject.)
Защищенный метод AppendCommaText Appends text, optionally separated by a comma. (Производный от ScriptNameObjectBase.)
Защищенный метод AppendWithCommaText Appends text, optionally separated by a comma. (Производный от ScriptNameObjectBase.)
Защищенный метод AppendWithOption Appends text and option text separated from the main text with a “WITH” string and optionally separated by a comma. (Производный от ScriptNameObjectBase.)
Защищенный метод AutoGenerateName Generates a name based on the object Guid. (Производный от ScriptNameObjectBase.)
Защищенный метод BindDefaultImpl Связывает элементы по умолчанию, определенные параметрами. (Производный от SqlSmoObject.)
Защищенный метод BindRuleImpl Связывает схему правил с правилом и столбцами, определенными параметрами. (Производный от SqlSmoObject.)
Защищенный метод CheckCollation Проверяет порядок параметров создания скриптов в методе сортировки, определенном параметром collationName. (Производный от SqlSmoObject.)
Открытый метод CheckIndex Tests the integrity of database pages that store the index.
Открытый метод CheckIndexWithResult Tests the integrity of database pages that store the index.
Защищенный метод CheckObjectDirty Checks whether object has been modified and not persisted. (Производный от ScriptNameObjectBase.)
Защищенный метод CheckObjectState() () () () Проверяет состояние связанного объекта. (Производный от SqlSmoObject.)
Защищенный метод CheckObjectState(Boolean) Проверяет состояние связанного объекта с возможностью указать исключение, возникающее, если объект еще не создан. (Производный от SqlSmoObject.)
Защищенный метод CheckObjectStateImpl Проверяет состояние объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод CheckTextCorectness Checks text for correctness against the parameters. (Производный от ScriptNameObjectBase.)
Защищенный метод CheckTextModeSupport Checks mode of support. (Производный от ScriptNameObjectBase.)
Защищенный метод CheckVersion100 Проверяет, является ли SQL Server версией SQL Server 2008. (Производный от SqlSmoObject.)
Защищенный метод CheckVersion80 Проверяет правильность объекта в SQL Server 2000. (Производный от SqlSmoObject.)
Защищенный метод CheckVersion80SP3 Проверяет правильность объекта в SQL Server 2000 с пакетом обновления 3 (SP3). (Производный от SqlSmoObject.)
Защищенный метод CheckVersion90 Проверяет правильность объекта в SQL Server 2005. (Производный от SqlSmoObject.)
Защищенный метод CheckVersionBelow90 Проверяет, является ли SQL Server более ранней версией, чем SQL Server 2005. (Производный от SqlSmoObject.)
Защищенный метод CleanObject Cleans the referenced object. (Производный от ScriptNameObjectBase.)
Открытый метод Create Creates an index on the instance of SQL Server as defined by the Index object.
Защищенный метод CreateImpl Создает объект с параметрами создания скриптов. (Производный от SqlSmoObject.)
Защищенный метод CreateImplFinish Метод, вызываемый при завершении события создания. (Производный от SqlSmoObject.)
Защищенный метод CreateImplInit Метод, вызываемый при инициализации события создания. (Производный от SqlSmoObject.)
Открытый метод Disable Disables the index.
Открытый метод Discover Находит список типа Object. (Производный от SqlSmoObject.)
Открытый метод Drop Drops the index.
Открытый метод DropAndMove(String) Drops a clustered index and moves the underlying table data to the specified filegroup.
Открытый метод DropAndMove(String, StringCollection) Drops a clustered index and moves the underlying table data to the partition scheme with the specified partition scheme parameters.
Защищенный метод DropImpl Удаляет объект SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод DropImplWorker Вызывает методы удаления. (Производный от SqlSmoObject.)
Открытый метод Enable Enables the index.
Открытый метод EnumFragmentation() () () () Enumerates a list of fragmentation information for the index using the default fast fragmentation option.
Открытый метод EnumFragmentation(FragmentationOption) Enumerates a list of fragmentation information for the index with the specified fragmentation option.
Открытый метод EnumFragmentation(FragmentationOption, Int32) Enumerates a list of fragmentation information for the index with the specified fragmentation option and partition number.
Защищенный метод EnumScriptImpl Перечисляет сценарии, заданные параметром so. (Производный от SqlSmoObject.)
Защищенный метод EnumScriptImplWorker Вызывает методы, перечисляющие заданные параметром so сценарии. (Производный от SqlSmoObject.)
Защищенный метод EnumScriptImplWorkerSOChanged Возвращает строку IEnumerable, описывающую параметры создания скриптов объекта. (Производный от SqlSmoObject.)
Открытый метод EnumStatistics Enumerates a list of statistical information for the index.
Открытый метод Equals (Производный от Object.)
Защищенный метод ExecuteNonQuery (Производный от SqlSmoObject.)
Защищенный метод Finalize (Производный от Object.)
Защищенный метод ForceTextModeOnTextBody Enforces text mode on the text body. (Производный от ScriptNameObjectBase.)
Защищенный метод FormatSqlVariant Форматирует объект как имеющий тип SqlVariant. (Производный от SqlSmoObject.)
Защищенный метод GenerateDataSpaceFileStreamScript Формирует скрипт, создающий файл данных. (Производный от SqlSmoObject.)
Защищенный метод GenerateDataSpaceScript Формирует скрипт, выделяющий пространство в файле данных. (Производный от SqlSmoObject.)
Защищенный метод GetBindDefaultScript Возвращает скрипт, привязывающий значения по умолчанию, определенные параметрами defSchema и defName. (Производный от SqlSmoObject.)
Защищенный метод GetBindRuleScript Возвращает скрипт, указывающий правила привязки. (Производный от SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Назначает параметр типа boolean объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetBoolParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Назначает свойство типа boolean объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetBraketNameForText Gets the bracket name. (Производный от ScriptNameObjectBase.)
Защищенный метод GetDateTimeParameter Назначает свойство типа datetime объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetDateTimeParameterAsInt Назначает свойство типа datetime объекта SqlSmoObject в виде целочисленного значения, если свойство типа datetime не равно NULL. (Производный от SqlSmoObject.)
Защищенный метод GetDBName Возвращает имя базы данных, связанной с объектом. (Производный от SqlSmoObject.)
Защищенный метод GetEnumParameter Назначает свойство перечисления SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetFragOptionString Возвращает объект FragmentationOption в виде строкового значения. (Производный от SqlSmoObject.)
Защищенный метод GetGuidParameter Назначает свойство Guid объекта SqlSmoObject. (Производный от SqlSmoObject.)
Открытый метод GetHashCode (Производный от Object.)
Защищенный метод GetIsSystemNamed Gets a Boolean value that specifies whether the system is named. (Производный от ScriptNameObjectBase.)
Защищенный метод GetIsTextDirty Determines whether the text value is consistent with stored value. (Производный от ScriptNameObjectBase.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Назначает параметр объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Назначает параметр объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetPropValue Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetPropValueOptional Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetPropValueOptionalAllowNull Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetRealValue Возвращает значение свойства объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetScriptIncludeExists Gets the script including the test for existence of type being scripted. (Производный от ScriptNameObjectBase.)
Защищенный метод GetScriptingOptionsForCreate Возвращает параметры ScriptingOptions объектаSqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetServerName Возвращает имя экземпляра SQL Server, с которым связан объект. (Производный от SqlSmoObject.)
Защищенный метод GetServerObject Возвращает сервер объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetSqlServerVersionName Возвращает имя версии экземпляра SQL Server, с которым связан объект. (Производный от SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%) Назначает параметр типа string объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetStringParameter(StringBuilder, ScriptingOptions, String, String, Int32%, Boolean) Назначает параметр типа string объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetTextBody() () () () Returns the text body. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTextBody(Boolean) Returns the text body. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] []) Gets the text for scripting. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTextForScript(ScriptingOptions, Boolean, array<String> [] () [] [], Boolean) Gets the text of script object. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTextHeader Returns the text header. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTextMode Determines whether the script name is using text mode. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTextProperty(String) Gets the property as text. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTextProperty(String, ScriptingOptions) Gets the property as text. (Производный от ScriptNameObjectBase.)
Защищенный метод GetTimeSpanParameterAsInt Назначает параметр временного диапазона объекта SqlSmoObject. (Производный от SqlSmoObject.)
Открытый метод GetType (Производный от Object.)
Защищенный метод GetUrnRecursive(StringBuilder) Присваивает объект Urn объекту SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод GetUrnRecursive(StringBuilder, UrnIdOption) Присваивает объект Urn объекту SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод ImplInitialize Инициализирует поля объекта SqlSmoObject. (Производный от SqlSmoObject.)
Открытый метод Initialize() () () () Инициализирует объект и инициирует загрузку свойств. (Производный от SqlSmoObject.)
Открытый метод Initialize(Boolean) Инициализирует объект и инициирует загрузку свойств. (Производный от SqlSmoObject.)
Защищенный метод IsObjectDirty Determines whether the referenced object is consistent with the stored object. (Производный от ScriptNameObjectBase.)
Защищенный метод IsObjectInitialized Проверяет, был ли объект инициализирован. (Производный от SqlSmoObject.)
Защищенный метод IsObjectInSpace Проверяет, является ли объект изолированным или подключенным к экземпляру SQL Server. (Производный от SqlSmoObject.)
Защищенный метод IsVersion80SP3 Определяет, является ли SQL Server версией SQL Server 2000 с пакетом обновления 3 (SP3). (Производный от SqlSmoObject.)
Защищенный метод IsVersion90AndAbove Определяет, является ли SQL Server версией SQL Server 2005 или более поздней. (Производный от SqlSmoObject.)
Защищенный метод MarkDropped Устанавливает состояние SqlSmoState для удаления. (Производный от SqlSmoObject.)
Открытый метод MarkForDrop Marks the index to be dropped the next time that the Alter method is run on the Index object's parent object.
Защищенный метод MarkForDropImpl Устанавливает состояние SqlSmoState для удаления. (Производный от SqlSmoObject.)
Защищенный метод MemberwiseClone (Производный от Object.)
Защищенный метод PostAlter Метод, активируемый после изменения SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод PostCreate Метод, активируемый после создания SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод PostDrop Метод, активируемый после удаления SqlSmoObject. (Производный от SqlSmoObject.)
Открытый метод Rebuild() () () () Rebuilds the index.
Открытый метод Rebuild(Int32) Rebuilds the index on the partition with the specified partition number.
Открытый метод RebuildAllIndexes Rebuilds all the indexes.
Открытый метод RecalculateSpaceUsage Updates the disk resource usage of the index.
Открытый метод Recreate Re-creates the index.
Открытый метод Refresh Refreshes the Index object and its properties. (Переопределяет ScriptNameObjectBase. . :: . .Refresh() () () ().)
Открытый метод Rename Renames the index.
Защищенный метод RenameImpl Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. (Производный от NamedSmoObject.)
Защищенный метод RenameImplWorker Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. (Производный от NamedSmoObject.)
Открытый метод Reorganize Reorganizes the index based on current property settings.
Открытый метод ReorganizeAllIndexes Reorganizes all the indexes based on current property settings.
Открытый метод Script() () () () Generates a Transact-SQL script that can be used to re-create the index.
Открытый метод Script(ScriptingOptions) Generates a Transact-SQL script that can be used to re-create the index as specified by the script options.
Защищенный метод ScriptAlter Изменяет SqlSmoObject в соответствии с параметрами. (Производный от SqlSmoObject.)
Защищенный метод ScriptAnsiQI Scripts the database object in ANSI text. (Производный от ScriptNameObjectBase.)
Защищенный метод ScriptChangeOwner This method supports the SMO infrastructure and is not intended to be used directly from your code. (Производный от NamedSmoObject.)
Защищенный метод ScriptCreate Изменяет SqlSmoObject в соответствии с параметрами. (Производный от SqlSmoObject.)
Защищенный метод ScriptDdl Вызывает исключение InvalidSmoOperationException. (Производный от SqlSmoObject.)
Защищенный метод ScriptDrop Вызывает исключение InvalidSmoOperationException. (Производный от SqlSmoObject.)
Защищенный метод ScriptImpl() () () () Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод ScriptImpl(ScriptingOptions) Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод ScriptImplWorker Возвращает коллекцию скриптов SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод ScriptInformativeHeaders Scripts the information headers. (Производный от ScriptNameObjectBase.)
Защищенный метод ScriptOwner Alters the script owner authorization. (Производный от NamedSmoObject.)
Защищенный метод ScriptRename This method supports the SMO infrastructure and is not intended to be used directly from your code. (Производный от NamedSmoObject.)
Защищенный метод SetCollectionTextMode Sets the collection text mode. (Производный от ScriptNameObjectBase.)
Защищенный метод SetIsSystemNamed Sets a Boolean value that specifies whether the system is named. (Производный от ScriptNameObjectBase.)
Защищенный метод SetParentImpl Устанавливает родительский объект объекта SqlSmoObject в значение параметра newParent. (Производный от SqlSmoObject.)
Защищенный метод SetSchemaOwned Sets the schema owned value. (Производный от NamedSmoObject.)
Защищенный метод SetTextBody Specifies the text body. (Производный от ScriptNameObjectBase.)
Защищенный метод SetTextHeader Specifies the text header. (Производный от ScriptNameObjectBase.)
Защищенный метод SetTextMode Specifies the text mode. (Производный от ScriptNameObjectBase.)
Защищенный метод SwitchTextMode Switches the text mode. (Производный от ScriptNameObjectBase.)
Защищенный метод ThrowIfTextIsDirtyForAlter Throws an exception of text has been modified and not persisted. (Производный от ScriptNameObjectBase.)
Открытый метод ToString Возвращает String, представляющее объект, на который ссылаются. (Производный от SqlSmoObject.)
Защищенный метод TouchImpl Не реализовано. (Производный от SqlSmoObject.)
Защищенный метод UnbindDefaultImpl Отменяет привязку столбцов по умолчанию для объекта SqlSmoObject. (Производный от SqlSmoObject.)
Защищенный метод UnbindRuleImpl Отменяет привязку правил для объекта SqlSmoObject. (Производный от SqlSmoObject.)
Открытый метод UpdateStatistics() () () () Updates statistics for the referenced index.
Открытый метод UpdateStatistics(StatisticsScanType) Updates statistics for the referenced index with the specified statistics scan type.
Открытый метод UpdateStatistics(StatisticsScanType, Int32) Updates statistics for the referenced index with the specified statistics scan type and specified sample size.
Открытый метод 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.
Открытый метод Validate Validates the state of an object. (Производный от SmoObjectBase.)

В начало

События

  Имя Описание
Открытое событие PropertyChanged Представляет событие, возникающее при изменении свойства. (Производный от SqlSmoObject.)
Открытое событие PropertyMetadataChanged Представляет событие, возникающее при изменении метаданных свойства. (Производный от SqlSmoObject.)

В начало

Поля

  Имя Описание
Защищенное поле m_ExtendedProperties Представляет свойство, определенное для расширения свойств, предоставляемых объектом SqlSmoObject. (Производный от SqlSmoObject.)
Защищенное поле singletonParent Представляет единственного родителя. (Производный от SqlSmoObject.)

В начало

Явные реализации интерфейса

  Имя Описание
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .Discover Находит любые зависимости. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .GetDomainRoot Возвращает корневой элемент домена. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .GetParent Возвращает родительский объект для данного объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .GetPropertyType Возвращает тип указанного свойства. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .GetPropertyValue Возвращает значение указанного свойства. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .GetUrn Возвращает универсальное имя ресурса для объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .Resolve Возвращает экземпляр, содержащий данные об объекте из универсального имени ресурса для объекта. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .SetObjectState Задает состоянию объекта указанное значение SfcObjectState. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод IAlienObject. . :: . .SetPropertyValue Устанавливает значение свойства. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытый метод ISfcPropertyProvider. . :: . .GetPropertySet Возвращает ссылку на интерфейс для набора свойств данного объекта. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.)
Явная реализация интерфейсаЗакрытое свойство ISfcSupportsDesignMode. . :: . .IsDesignMode Gets a Boolean value that indicates whether the object supports design mode.

В начало

Замечания

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

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

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

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