PropertySettingsHelper.TryGetValue<T> Yöntem

Tanım

TryGetValue model uzantısı

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static bool TryGetValue(Microsoft::VisualStudio::Workspace::IPropertySettings ^ settings, System::String ^ key, [Runtime::InteropServices::Out] T % value);
public static bool TryGetValue<T> (this Microsoft.VisualStudio.Workspace.IPropertySettings settings, string key, out T value);
static member TryGetValue : Microsoft.VisualStudio.Workspace.IPropertySettings * string * 'T -> bool
<Extension()>
Public Function TryGetValue(Of T) (settings As IPropertySettings, key As String, ByRef value As T) As Boolean

Tür Parametreleri

T

İstenen tür bekleniyor

Parametreler

settings
IPropertySettings

Ayar örneği

key
String

Yapılandırmada aranacak anahtar

value
T

Ayar girdisindeki değer

Döndürülenler

Boolean

anahtar bulunursa doğru

Şunlara uygulanır