WorkspaceSettingsExtensions.UnionPropertyArray<T> Method

Definition

This method will return union of all values in hierarchical chain, not just the top array.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IEnumerable<T> ^ UnionPropertyArray(Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings ^ settings, System::String ^ key);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Workspace.Settings.WorkspaceSettingsExtensions+<UnionPropertyArray>d__4<>))]
public static System.Collections.Generic.IEnumerable<T> UnionPropertyArray<T> (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings settings, string key);
[System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Workspace.Settings.WorkspaceSettingsExtensions+<UnionPropertyArray>d__4<>))]
public static System.Collections.Generic.IEnumerable<T> UnionPropertyArray<T> (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings? settings, string key);
[<System.Runtime.CompilerServices.IteratorStateMachine(typeof(Microsoft.VisualStudio.Workspace.Settings.WorkspaceSettingsExtensions+<UnionPropertyArray>d__4<>))>]
static member UnionPropertyArray : Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings * string -> seq<'T>
<Extension()>
Public Iterator Function UnionPropertyArray(Of T) (settings As IWorkspaceSettings, key As String) As IEnumerable(Of T)

Type Parameters

T

type of the elements in array

Parameters

settings
IWorkspaceSettings

the settings instance

key
String

the name of the property

Returns

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

Attributes

Applies to