ProvideCommandLineSwitchAttribute Class

Definition

Important

This API is not CLS-compliant.

Attribute class to provide the registry entries for contributing a command-line switch

public ref class ProvideCommandLineSwitchAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
[System.CLSCompliant(false)]
public sealed class ProvideCommandLineSwitchAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)]
public sealed class ProvideCommandLineSwitchAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
[<System.CLSCompliant(false)>]
type ProvideCommandLineSwitchAttribute = class
    inherit RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true)>]
type ProvideCommandLineSwitchAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideCommandLineSwitchAttribute
Inherits RegistrationAttribute
Inheritance
ProvideCommandLineSwitchAttribute
Attributes

Constructors

ProvideCommandLineSwitchAttribute(String, String)

Create a new ProvideCommandLineSwitch attribute

Properties

Arguments

The number of arguments to the command-line switch

DemandLoad

Whether the command-line switch shoudl cause deman-loading

HelpText

The help string for the command-line switch

Name

The name of the command-line switch

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)

Register a new command line switch

Unregister(RegistrationAttribute+RegistrationContext)

Unregister a command-line switch

Applies to