Partager via


SettingsStore.GetInt64 Method

Definition

Overloads

GetInt64(String, String)

Returns the value of the requested property whose data type is Int64.

GetInt64(String, String, Int64)

Returns the value of the requested property whose data type is Int64.

GetInt64(String, String)

Returns the value of the requested property whose data type is Int64.

public:
 abstract long GetInt64(System::String ^ collectionPath, System::String ^ propertyName);
public:
 abstract long long GetInt64(Platform::String ^ collectionPath, Platform::String ^ propertyName);
 abstract long GetInt64(std::wstring const & collectionPath, std::wstring const & propertyName);
public abstract long GetInt64 (string collectionPath, string propertyName);
abstract member GetInt64 : string * string -> int64
Public MustOverride Function GetInt64 (collectionPath As String, propertyName As String) As Long

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 unsigned long 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

GetInt64(String, String, Int64)

Returns the value of the requested property whose data type is Int64.

public:
 abstract long GetInt64(System::String ^ collectionPath, System::String ^ propertyName, long defaultValue);
public:
 abstract long long GetInt64(Platform::String ^ collectionPath, Platform::String ^ propertyName, long long defaultValue);
 abstract long GetInt64(std::wstring const & collectionPath, std::wstring const & propertyName, long defaultValue);
public abstract long GetInt64 (string collectionPath, string propertyName, long defaultValue);
abstract member GetInt64 : string * string * int64 -> int64
Public MustOverride Function GetInt64 (collectionPath As String, propertyName As String, defaultValue As Long) As Long

Parameters

collectionPath
String

Path of the collection of the property.

propertyName
String

Name of the property.

defaultValue
Int64

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 unsigned long 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.

Applies to