Share via


PlanGuide.ScopeType Property

Gets or sets the plan guide scope type.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property ScopeType As PlanGuideType 
    Get 
    Set
'Usage
Dim instance As PlanGuide 
Dim value As PlanGuideType 

value = instance.ScopeType

instance.ScopeType = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public PlanGuideType ScopeType { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property PlanGuideType ScopeType {
    PlanGuideType get ();
    void set (PlanGuideType value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member ScopeType : PlanGuideType with get, set
function get ScopeType () : PlanGuideType 
function set ScopeType (value : PlanGuideType)

Property Value

Type: Microsoft.SqlServer.Management.Smo.PlanGuideType
The type of the scope.

See Also

Reference

PlanGuide Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Designing and Implementing Plan Guides

Plan Guides