Partilhar via


WorkspaceSettingsExtensions.PropertyArray<T> Method

Definition

Wrapper around WorkspaceSettingsResult GetPropertyArray. Used when caller is not interested by the current state, but just want to get the current value to use.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static cli::array <T> ^ PropertyArray(Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettingsSource ^ settings, System::String ^ key);
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static Platform::Array <T> ^ PropertyArray(Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettingsSource ^ settings, Platform::String ^ key);
public static T[] PropertyArray<T> (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettingsSource settings, string key);
static member PropertyArray : Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettingsSource * string -> 'T[]
<Extension()>
Public Function PropertyArray(Of T) (settings As IWorkspaceSettingsSource, key As String) As T()

Type Parameters

T

type of the elements in array

Parameters

settings
IWorkspaceSettingsSource

the settings instance

key
String

the name of the property

Returns

T[]

the current value as persisted in the settings or empty array if there is none

Applies to