PackageRegistrationAttribute.RegisterUsing Property

Gets or sets the method of registration.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Property RegisterUsing As RegistrationMethod
'使用
Dim instance As PackageRegistrationAttribute
Dim value As RegistrationMethod

value = instance.RegisterUsing

instance.RegisterUsing = value
public RegistrationMethod RegisterUsing { get; set; }
public:
property RegistrationMethod RegisterUsing {
    RegistrationMethod get ();
    void set (RegistrationMethod value);
}
public function get RegisterUsing () : RegistrationMethod
public function set RegisterUsing (value : RegistrationMethod)

Property Value

Type: Microsoft.VisualStudio.Shell.RegistrationMethod

RegistrationMethod.

Remarks

The enumeration RegistrationMethod describes registration choices.

Enumeration Value

Description

Default

Should be used only by tools.

CodeBase

The path to the assembly should be stored in the registry and used to locate the assembly at runtime.

Assembly

The assembly should be in the GAC or in PrivateAssemblies.

The registration mode specified in the command line of RegPkg has precedence over the value of this property.

Permissions

See Also

Concepts

How to: Register Managed VSPackages

Reference

PackageRegistrationAttribute Class

PackageRegistrationAttribute Members

Microsoft.VisualStudio.Shell Namespace