Share via


WorkspaceSettingsExtensions.PropertyGroup(IWorkspaceSettings, String) Method

Definition

A special provider of inner named settings collection (T=IWorkspaceSettings) Used when caller is not interested by the current state, but just want to get the current value to use.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings ^ PropertyGroup(Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings ^ settings, System::String ^ key);
public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings ^ PropertyGroup(Microsoft::VisualStudio::Workspace::Settings::IWorkspaceSettings ^ settings, Platform::String ^ key);
public static Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings PropertyGroup (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings settings, string key);
public static Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings? PropertyGroup (this Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings settings, string key);
static member PropertyGroup : Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings * string -> Microsoft.VisualStudio.Workspace.Settings.IWorkspaceSettings
<Extension()>
Public Function PropertyGroup (settings As IWorkspaceSettings, key As String) As IWorkspaceSettings

Parameters

settings
IWorkspaceSettings

the settings instance

key
String

the name of the property

Returns

the current value as persisted in the settings or empty

Applies to