IVsSettingsStore.GetBool(String, String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回布尔类型属性。
public:
int GetBool(System::String ^ collectionPath, System::String ^ propertyName, [Runtime::InteropServices::Out] int % value);
int GetBool(std::wstring const & collectionPath, std::wstring const & propertyName, [Runtime::InteropServices::Out] int & value);
public int GetBool (string collectionPath, string propertyName, out int value);
abstract member GetBool : string * string * -> int
Public Function GetBool (collectionPath As String, propertyName As String, ByRef value As Integer) As Integer
参数
- collectionPath
- String
中集合的路径。
- propertyName
- String
中属性名称。
- value
- Int32
弄值。
返回
如果 S_OK 返回属性,则返回; 如果属性不存在,则返回; S_FALSE E_INVALIDARG 如果属性类型不是布尔值,则返回。
注解
如果该属性存储为有符号或无符号的整数值,则在输出值上应用常规 c + + 类型强制转换语义。