IVsSettingsManager.GetPropertyScopes(String, String, UInt32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回给定集合中包含给定属性的范围。
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 集合的。
返回
S_OK如果找到了属性并且返回了作用域,则返回。
注解
如果有多个范围包含集合,则设置这些范围的相应标志。 如果没有范围包含集合,则将 scope 参数设置为 EnclosingScopes_None 。