IVsSettingsStore.GetBoolOrDefault(String, String, Int32, Int32) 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 a boolean type property value or a specified default value.
public:
int GetBoolOrDefault(System::String ^ collectionPath, System::String ^ propertyName, int defaultValue, [Runtime::InteropServices::Out] int % value);
int GetBoolOrDefault(std::wstring const & collectionPath, std::wstring const & propertyName, int defaultValue, [Runtime::InteropServices::Out] int & value);
public int GetBoolOrDefault (string collectionPath, string propertyName, int defaultValue, out int value);
abstract member GetBoolOrDefault : string * string * int * int -> int
Public Function GetBoolOrDefault (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 boolean.
Remarks
This method is safe to access from any thread.