IVsSettingsManager.GetPropertyScopes(String, String, UInt32) 方法

定义

返回给定集合中包含给定属性的范围。

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 *  -> int
Public Function GetPropertyScopes (collectionPath As String, propertyName As String, ByRef scopes As UInteger) As Integer

参数

collectionPath
String

中集合文件的路径。

propertyName
String

中属性的名称。

scopes
UInt32

__VsEnclosingScopes 集合的。

返回

Int32

S_OK如果找到了属性并且返回了作用域,则返回。

注解

如果有多个范围包含集合,则设置这些范围的相应标志。 如果没有范围包含集合,则将 scope 参数设置为 EnclosingScopes_None

适用于