IVsSettingsStore.GetUnsignedIntOrDefault 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回无符号整数属性或给定的默认值。
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
弄值。
返回
如果 S_OK 返回属性,则返回; 如果属性不存在,则返回; S_FALSE E_INVALIDARG 如果属性类型不是无符号整数,则返回。