Compartilhar via


IVsSettingsManager.GetPropertyScopes Method

Returns the scopes that contain the given property in the given collection.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assemblies:   Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

Syntax

'Declaration
Function GetPropertyScopes ( _
    collectionPath As String, _
    propertyName As String, _
    <OutAttribute> ByRef scopes As UInteger _
) As Integer
int GetPropertyScopes(
    string collectionPath,
    string propertyName,
    out uint scopes
)
int GetPropertyScopes(
    [InAttribute] String^ collectionPath, 
    [InAttribute] String^ propertyName, 
    [OutAttribute] unsigned int% scopes
)
abstract GetPropertyScopes : 
        collectionPath:string * 
        propertyName:string * 
        scopes:uint32 byref -> int
function GetPropertyScopes(
    collectionPath : String, 
    propertyName : String, 
    scopes : uint
) : int

Parameters

  • collectionPath
    Type: String

    [in] The path to the collections file.

  • propertyName
    Type: String

    [in] The name of the property.

Return Value

Type: Int32
Returns S_OK if the property was found and the scope was returned.

Remarks

If more than one scope contains the collection, the corresponding flags of those scopes are set. If none of the scopes contains the collection, the scope parameter is set to EnclosingScopes_None.

.NET Framework Security

See Also

Reference

IVsSettingsManager Interface

Microsoft.VisualStudio.Shell.Interop Namespace