IVsSettingsStore.GetInt(String, String, Int32) 方法

定义

返回整数类型属性值。

public:
 int GetInt(System::String ^ collectionPath, System::String ^ propertyName, [Runtime::InteropServices::Out] int % value);
int GetInt(std::wstring const & collectionPath, std::wstring const & propertyName, [Runtime::InteropServices::Out] int & value);
public int GetInt (string collectionPath, string propertyName, out int value);
abstract member GetInt : string * string *  -> int
Public Function GetInt (collectionPath As String, propertyName As String, ByRef value As Integer) As Integer

参数

collectionPath
String

中集合的路径。

propertyName
String

中属性名称。

value
Int32

弄值。

返回

Int32

如果 S_OK 返回属性,则返回; 如果属性不存在,则返回; S_FALSE E_INVALIDARG 如果属性类型不是整数,则返回。

注解

如果该属性存储为无符号值,则会在输出值上应用常规 c + + 类型强制转换语义。

适用于