IVsSettingsStore.GetUnsignedIntOrDefault 方法

定义

返回无符号整数属性或给定的默认值。

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

参数

collectionPath
String

中集合的路径。

propertyName
String

中属性名称。

defaultValue
UInt32

中如果未设置该属性,则返回值。

value
UInt32

弄值。

返回

Int32

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

适用于