Share via


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

'Declaration
Public Overrides Sub Register ( _
    context As RegistrationAttribute..::..RegistrationContext _
)
public override void Register(
    RegistrationAttribute..::..RegistrationContext context
)
public:
virtual void Register(
    RegistrationAttribute..::..RegistrationContext^ context
) override
abstract Register : 
        context:RegistrationAttribute..::..RegistrationContext -> unit 
override Register : 
        context:RegistrationAttribute..::..RegistrationContext -> unit 
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"

.NET Framework Security

See Also

Reference

ProvideGlobalObjectProviderAttribute Class

Microsoft.VisualStudio.Shell.Design Namespace

Unregister