ProvideAppCommandLineAttribute Třída

Definice

Tento atribut přidá možnost příkazového řádku pro devenv pro typ balíčku specfic. Příklad: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\AppCommandLine\MyAppCommand "Argumenty"="*" "DemandLoad"=dword:1 "Package"="{5C48C732-5C7F-40f0-87A7-05C4F15BC8C3}" "HelpString"="#200"

public ref class ProvideAppCommandLineAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideAppCommandLineAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideAppCommandLineAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideAppCommandLineAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideAppCommandLineAttribute
Inherits RegistrationAttribute
Dědičnost
ProvideAppCommandLineAttribute
Atributy

Konstruktory

ProvideAppCommandLineAttribute(String, Type)

Konstruktor

Vlastnosti

Arguments

Výchozí argumenty pro příkazový řádek

DemandLoad

Pokud by se balíček načetl na vyžádání.

HelpString

Řetězec nápovědy, který se má zobrazit pro příkaz. Může se jednat o ID prostředku.

Name

Název příkazového řádku

PackageGuid

Identifikátor GUID balíčku poskytujícího příkazový řádek

TypeId

Přepište vlastnost TypeID, aby mohly odvozené třídy RegistrationAttribute pracovat s System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto bude muset přepsat tuto vlastnost pouze v případě, že potřebuje lepší kontrolu nad instancemi, které lze použít na třídu.

(Zděděno od RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Získá cestu registru (vzhledem k kořenovému adresáři registru aplikace) VSPackage.

(Zděděno od RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Volá se pro registraci tohoto atributu v daném kontextu. Kontext obsahuje umístění, kam se mají umístit informace o registraci. obsahuje také například zaregistrovaný typ a informace o cestě.

Unregister(RegistrationAttribute+RegistrationContext)

Zrušení registrace tohoto příkazového řádku aplikace

Platí pro