ISettingsManager.TryGetValue<T>(String, T) Method

Definition

Attempts to reads a value from the store and returns the result of the operation.

C++
public:
generic <typename T>
 Microsoft::VisualStudio::Settings::GetValueResult TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] T % value);

Type Parameters

T

The type of the setting.

Parameters

name
String

The name of the setting.

value
T

The value.

Returns

Returns GetValueResult.

Exceptions

Thrown when name is null.

Thrown when name is empty.

Remarks

This method is safe to access from any thread.

Applies to

Produkt Versioner
Visual Studio SDK 2015, 2017, 2019, 2022