ProvideWorkspaceSettingsAttribute Class

Definition

ProvideWorkspaceSettingsAttribute class. Registers a workspace settings file for use in OpenFolder settings.

public ref class ProvideWorkspaceSettingsAttribute : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class)]
public class ProvideWorkspaceSettingsAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class)>]
type ProvideWorkspaceSettingsAttribute = class
    inherit RegistrationAttribute
Public Class ProvideWorkspaceSettingsAttribute
Inherits RegistrationAttribute
Inheritance
ProvideWorkspaceSettingsAttribute
Attributes

Constructors

ProvideWorkspaceSettingsAttribute(String, String)

Initializes a new instance of the ProvideWorkspaceSettingsAttribute class.

Properties

RelativeSettingsJsonPath

Gets the relative path to the settings.json file that exists inside of the extension.

SettingName

Gets or sets the setting name. Defaults to a random GUID generated during the construction of the object.

SettingsType

Gets the type of settings (e.g. "VSWorkspaceSettings").

TypeId

Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Registers this VSPackage with a given context, when called by an external registration tool such as regpkg.exe. For more information, see Registering VSPackages.

Unregister(RegistrationAttribute+RegistrationContext)

Called to unregister this attribute with the given context.

Applies to