共用方式為


RegistrationAttribute.RegistrationContext.ComponentType Property

Gets the type of component being registered.

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

Syntax

'宣告
Public MustOverride ReadOnly Property ComponentType As Type
public abstract Type ComponentType { get; }

Property Value

Type: System.Type
The type of component being registered.

Remarks

For attributes attached to VSPackages, ComponentType returns the package type.

.NET Framework Security

See Also

Reference

RegistrationAttribute.RegistrationContext Class

Microsoft.VisualStudio.Shell Namespace

RegistrationAttribute.RegistrationContext