Compartir a través de


IVsSettingsManager.GetPropertyScopes(String, String, UInt32) Method

Definition

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

public:
 int GetPropertyScopes(System::String ^ collectionPath, System::String ^ propertyName, [Runtime::InteropServices::Out] System::UInt32 % scopes);
int GetPropertyScopes(std::wstring const & collectionPath, std::wstring const & propertyName, [Runtime::InteropServices::Out] unsigned int & scopes);
public int GetPropertyScopes (string collectionPath, string propertyName, out uint scopes);
abstract member GetPropertyScopes : string * string * uint32 -> int
Public Function GetPropertyScopes (collectionPath As String, propertyName As String, ByRef scopes As UInteger) As Integer

Parameters

collectionPath
String

[in] The path to the collections file.

propertyName
String

[in] The name of the property.

scopes
UInt32

[out] The __VsEnclosingScopes for the collections.

Returns

Returns S_OK if the property was found and the scope was returned.

Remarks

This method is safe to access from any thread.

Applies to