SettingsStore.GetUInt32 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.
Overloads
GetUInt32(String, String) |
Returns the value of the requested property whose data type is Int32. |
GetUInt32(String, String, UInt32) |
Returns the value of the requested property whose data type is Int32. |
GetUInt32(String, String)
Returns the value of the requested property whose data type is Int32.
public:
abstract System::UInt32 GetUInt32(System::String ^ collectionPath, System::String ^ propertyName);
public:
abstract unsigned int GetUInt32(Platform::String ^ collectionPath, Platform::String ^ propertyName);
abstract unsigned int GetUInt32(std::wstring const & collectionPath, std::wstring const & propertyName);
public abstract uint GetUInt32 (string collectionPath, string propertyName);
abstract member GetUInt32 : string * string -> uint32
Public MustOverride Function GetUInt32 (collectionPath As String, propertyName As String) As UInteger
Parameters
- collectionPath
- String
Path of the collection of the property.
- propertyName
- String
Name of the property.
Returns
Value of the property. If the value was stored as an signed integer previously then regular type conversion sematics applies.
Exceptions
Throws this exception if the property is of different type or if it does not exist.
Remarks
This method is safe to access from any thread.
Applies to
GetUInt32(String, String, UInt32)
Returns the value of the requested property whose data type is Int32.
public:
abstract System::UInt32 GetUInt32(System::String ^ collectionPath, System::String ^ propertyName, System::UInt32 defaultValue);
public:
abstract unsigned int GetUInt32(Platform::String ^ collectionPath, Platform::String ^ propertyName, unsigned int defaultValue);
abstract unsigned int GetUInt32(std::wstring const & collectionPath, std::wstring const & propertyName, unsigned int defaultValue);
public abstract uint GetUInt32 (string collectionPath, string propertyName, uint defaultValue);
abstract member GetUInt32 : string * string * uint32 -> uint32
Public MustOverride Function GetUInt32 (collectionPath As String, propertyName As String, defaultValue As UInteger) As UInteger
Parameters
- collectionPath
- String
Path of the collection of the property.
- propertyName
- String
Name of the property.
- defaultValue
- UInt32
Value to be returned if the property does not exist.
Returns
If the property does not exist, it returns the defaultValue passed in. If the value was stored as an signed integer previously then regular type conversion sematics applies.
Exceptions
Throws this exception if the property is of different type.
Remarks
This method is safe to access from any thread.