IVsSettingsStore.GetUnsignedIntOrDefault Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an unsigned integer property or a given default value.
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 * uint32 -> int
Public Function GetUnsignedIntOrDefault (collectionPath As String, propertyName As String, defaultValue As UInteger, ByRef value As UInteger) As Integer
Parameters
- collectionPath
- String
[in] The path of the collection.
- propertyName
- String
[in] The property name.
- defaultValue
- UInt32
[in] The value to return if the property is not set.
- value
- UInt32
[out] The value.
Returns
Returns S_OK if the property was returned, S_FALSE if the property does not exist or E_INVALIDARG if the property type is not an unsigned integer.
Remarks
This method is safe to access from any thread.