ProvideGlobalObjectProviderAttribute.Register Method

Registers this attribute using the specified registry context.

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

Syntax

'宣言
Public Overrides Sub Register ( _
    context As RegistrationAttribute..::.RegistrationContext _
)
'使用
Dim instance As ProvideGlobalObjectProviderAttribute
Dim context As RegistrationAttribute..::.RegistrationContext

instance.Register(context)
public override void Register(
    RegistrationAttribute..::.RegistrationContext context
)
public:
virtual void Register(
    RegistrationAttribute..::.RegistrationContext^ context
) override
public override function Register(
    context : RegistrationAttribute..::.RegistrationContext
)

Parameters

Remarks

The Register method registers the ProvideGlobalObjectProviderAttribute instance using the supplied registry context, which supplies information such as the component type and path, associated in-process server, assembly location, and so on.

The following Windows registry entries are created by Register.

VSROOT\GlobalObjectProviders\{ObjectGuid}=<provider name>

VSROOT\CLSID\{ObjectGuid}

VSROOT\CLSID\{ObjectGuid}\@=<ObjectType.FullName>

VSROOT\CLSID\{ObjectGuid}\InprocServer32=< context.InprocServerPath, typically "mscoree.dll">

VSROOT\CLSID\{ObjectGuid}\Class=< ProviderType.FullName>

VSROOT\CLSID\{ObjectGuid}\Assembly=<ProviderType.Assembly.FullName>

VSROOT\CLSID\{ObjectGuid}\ThreadingModel="Both"

Permissions

See Also

Reference

ProvideGlobalObjectProviderAttribute Class

ProvideGlobalObjectProviderAttribute Members

Microsoft.VisualStudio.Shell.Design Namespace

Unregister