다음을 통해 공유


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

Definition

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

public:
generic <typename T>
 Microsoft::VisualStudio::Settings::GetValueResult TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] T % value);
public Microsoft.VisualStudio.Settings.GetValueResult TryGetValue<T> (string name, out T value);
abstract member TryGetValue : string * 'T -> Microsoft.VisualStudio.Settings.GetValueResult
Public Function TryGetValue(Of T) (name As String, ByRef value As T) As GetValueResult

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