IVsWritableSettingsStore.GetIntOrDefault(String, String, Int32, Int32) Method

Definition

Returns an integer type property or a specified default value.

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

Parameters

collectionPath
String

[in] The path of the collection.

propertyName
String

[in] The property name.

defaultValue
Int32

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

value
Int32

[out] The value.

Returns

Returns S_OK if the property was returned, S_FALSE if the property does not exist or Microsoft.VisualStudio.E_INVALIDARG if the property type is not an integer.

Implements

Remarks

This method is safe to access from any thread.

Applies to