ProvideCommandLineSwitchAttribute 类

定义

重要

此 API 不符合 CLS。

提供用于提供命令行开关的注册表项的特性类

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)>]
[<System.CLSCompliant(false)>]
type ProvideCommandLineSwitchAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideCommandLineSwitchAttribute
Inherits RegistrationAttribute
继承
ProvideCommandLineSwitchAttribute
属性

构造函数

ProvideCommandLineSwitchAttribute(String, String)

创建新的 ProvideCommandLineSwitch 属性

属性

Arguments

命令行开关的参数数目

DemandLoad

命令行开关是否应导致 deman 加载

HelpText

命令行开关的帮助字符串

Name

命令行开关的名称

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

注册新的命令行开关

Unregister(RegistrationAttribute+RegistrationContext)

取消注册命令行开关

适用于