Класс PlanGuide
Creates a plan guide object: PlanGuide
Иерархия наследования
System.Object
Microsoft.SqlServer.Management.Smo.SmoObjectBase
Microsoft.SqlServer.Management.Smo.SqlSmoObject
Microsoft.SqlServer.Management.Smo.NamedSmoObject
Microsoft.SqlServer.Management.Smo.PlanGuide
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
<PhysicalFacetAttribute> _
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
Public NotInheritable Class PlanGuide _
Inherits NamedSmoObject _
Implements ICreatable, IAlterable, IDroppable, IScriptable, _
IExtendedProperties
'Применение
Dim instance As PlanGuide
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
public sealed class PlanGuide : NamedSmoObject,
ICreatable, IAlterable, IDroppable, IScriptable, IExtendedProperties
[PhysicalFacetAttribute]
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
public ref class PlanGuide sealed : public NamedSmoObject,
ICreatable, IAlterable, IDroppable, IScriptable, IExtendedProperties
[<SealedAttribute>]
[<PhysicalFacetAttribute>]
[<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)>]
type PlanGuide =
class
inherit NamedSmoObject
interface ICreatable
interface IAlterable
interface IDroppable
interface IScriptable
interface IExtendedProperties
end
public final class PlanGuide extends NamedSmoObject implements ICreatable, IAlterable, IDroppable, IScriptable, IExtendedProperties
Тип PlanGuide обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
![]() |
PlanGuide() | Creates a plan guide object: PlanGuide |
![]() |
PlanGuide(Database, String) | Creates a plan guide object: PlanGuide |
В начало
Свойства
Имя | Описание | |
---|---|---|
![]() |
ExtendedProperties | Gets a collection of plan guide properties. |
![]() |
Hints | Shows the hints that are associated with the plan guide. |
![]() |
ID | Gets the identifier of the plan guide. |
![]() |
IsDisabled | Indicates whether a plan guide is disabled. |
![]() |
Name | Gets or sets the name of the object. (Производный от NamedSmoObject.) |
![]() |
Parameters | Gets a string that lists all the plan guide parameters. |
![]() |
Parent | Gets the parent database object. |
![]() |
Properties | Gets a collection of Property objects that represent the object properties. (Производный от SqlSmoObject.) |
![]() |
ScopeBatch | Gets or sets the scope batch of the plan guide. |
![]() |
ScopeObjectName | Gets or sets the scope object name. |
![]() |
ScopeSchemaName | Gets or sets the scope schema name. |
![]() |
ScopeType | Gets or sets the plan guide scope type. |
![]() |
State | Gets the state of the referenced object. (Производный от SmoObjectBase.) |
![]() |
Statement | Gets or sets a plan guide statement (query). |
![]() |
Urn | Gets the Uniform Resource Name (URN) address value that uniquely identifies the object. (Производный от SqlSmoObject.) |
![]() |
UserData | Gets or sets user-defined data associated with the referenced object. (Производный от SmoObjectBase.) |
В начало
Методы
Имя | Описание | |
---|---|---|
![]() |
Alter | Enables or disables a plan guide. |
![]() |
Create | Creates a plan guide. |
![]() |
Discover | Discovers a list of type Object. (Производный от SqlSmoObject.) |
![]() |
Drop | Drops a plan guide. |
![]() |
Equals | (Производный от Object.) |
![]() |
FormatSqlVariant | Formats an object as SqlVariant type. (Производный от SqlSmoObject.) |
![]() |
GetContextDB | Gets the context database that is associated with this object. (Производный от SqlSmoObject.) |
![]() |
GetDBName | Gets the database name that is associated with the object. (Производный от SqlSmoObject.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetPropValue | Gets a property value of the SqlSmoObject object. (Производный от SqlSmoObject.) |
![]() |
GetPropValueOptional | Gets a property value of the SqlSmoObject object. (Производный от SqlSmoObject.) |
![]() |
GetPropValueOptionalAllowNull | Gets a property value of the SqlSmoObject object. (Производный от SqlSmoObject.) |
![]() |
GetServerObject | Gets the server of the SqlSmoObject object. (Производный от SqlSmoObject.) |
![]() |
GetType | (Производный от Object.) |
![]() |
Initialize() | Initializes the object and forces the properties be loaded. (Производный от SqlSmoObject.) |
![]() |
Initialize(Boolean) | Initializes the object and forces the properties be loaded. (Производный от SqlSmoObject.) |
![]() |
IsObjectInitialized | Verifies whether the object has been initialized. (Производный от SqlSmoObject.) |
![]() |
IsObjectInSpace | Verifies whether the object is isolated or connected to the instance of SQL Server. (Производный от SqlSmoObject.) |
![]() |
Refresh | Refreshes the object and retrieves properties when the object is next accessed. (Производный от SqlSmoObject.) |
![]() |
Script() | Creates a script object. |
![]() |
Script(ScriptingOptions) | Creates a string collection object for a script. |
![]() |
SetParentImpl | Sets the parent of the SqlSmoObject to the newParent parameter. (Производный от SqlSmoObject.) |
![]() |
ToString | Returns a String that represents the referenced object. (Производный от SqlSmoObject.) |
![]() |
Validate | Validates the state of an object. (Производный от SmoObjectBase.) |
![]() |
ValidatePlanGuide() | Indicates whether the plan guide is valid. |
![]() |
ValidatePlanGuide(DataRow%) | Returns whether the plan guide is valid. |
В начало
События
Имя | Описание | |
---|---|---|
![]() |
PropertyChanged | Represents the event that occurs when a property is changed. (Производный от SqlSmoObject.) |
![]() |
PropertyMetadataChanged | Represents the event that occurs when property metadata changes. (Производный от SqlSmoObject.) |
В начало
Явные реализации интерфейса
Имя | Описание | |
---|---|---|
![]() ![]() |
IAlienObject.Discover | Discovers any dependencies. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.GetDomainRoot | Returns the root of the domain. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.GetParent | Gets the parent of this object. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.GetPropertyType | Gets the type of the specified property. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.GetPropertyValue | Gets the value of the specified property. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.GetUrn | Gets the Unified Resource Name (URN) of the object. Не ссылайтесь на этот элемент непосредственно из кода. Он поддерживает работу инфраструктуры SQL Server. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.Resolve | Gets the instance that contains the information about the object from the Unified Resource Name (URN) of the object. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.SetObjectState | Sets the object state to the specified SfcObjectState value. (Производный от SqlSmoObject.) |
![]() ![]() |
IAlienObject.SetPropertyValue | Sets the property value. (Производный от SqlSmoObject.) |
![]() ![]() |
ISfcPropertyProvider.GetPropertySet | Gets the interface reference to the set of properties of this object. (Производный от SqlSmoObject.) |
В начало
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.
См. также
Справочник
Пространство имен Microsoft.SqlServer.Management.Smo