Partager via


ShellSettingsManager.GetPropertyScopes Method

Gets the scopes that contain the given property.

Namespace:  Microsoft.VisualStudio.Shell.Settings
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Overrides Function GetPropertyScopes ( _
    collectionPath As String, _
    propertyName As String _
) As EnclosingScopes
public override EnclosingScopes GetPropertyScopes(
    string collectionPath,
    string propertyName
)
public:
virtual EnclosingScopes GetPropertyScopes(
    String^ collectionPath, 
    String^ propertyName
) override
abstract GetPropertyScopes : 
        collectionPath:string * 
        propertyName:string -> EnclosingScopes  
override GetPropertyScopes : 
        collectionPath:string * 
        propertyName:string -> EnclosingScopes
public override function GetPropertyScopes(
    collectionPath : String, 
    propertyName : String
) : EnclosingScopes

Parameters

  • collectionPath
    Type: String

    The path of the collection of the property.

  • propertyName
    Type: String

    The name of the property to be searched.

Return Value

Type: Microsoft.VisualStudio.Settings.EnclosingScopes
The enclosing scopes.

Remarks

If more than one scope contains the property, the corresponding bit flags of those scopes are set.

.NET Framework Security

See Also

Reference

ShellSettingsManager Class

Microsoft.VisualStudio.Shell.Settings Namespace