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
)
Parameters
- context
Type: Microsoft.VisualStudio.Shell.RegistrationAttribute.RegistrationContext
The RegistrationAttribute.RegistrationContext that contains registration data.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
ProvideGlobalObjectProviderAttribute Class