Share via


IVsSettingsStore.GetInt64OrDefault(String, String, Int64, Int64) Method

Definition

Returns a 64-bit integer value or a specified default value.

public:
 int GetInt64OrDefault(System::String ^ collectionPath, System::String ^ propertyName, long defaultValue, [Runtime::InteropServices::Out] long % value);
int GetInt64OrDefault(std::wstring const & collectionPath, std::wstring const & propertyName, long defaultValue, [Runtime::InteropServices::Out] long & value);
public int GetInt64OrDefault (string collectionPath, string propertyName, long defaultValue, out long value);
abstract member GetInt64OrDefault : string * string * int64 * int64 -> int
Public Function GetInt64OrDefault (collectionPath As String, propertyName As String, defaultValue As Long, ByRef value As Long) As Integer

Parameters

collectionPath
String

[in] The path of the collection.

propertyName
String

[in] The property name.

defaultValue
Int64

[in] The default value to return if the property is not set.

value
Int64

[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 a 64-bit integer.

Remarks

This method is safe to access from any thread.

Applies to