Registers a component and returns its descriptor.

Namespace:  Gallio.Runtime.Extensibility
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public IComponentDescriptor RegisterComponent(
	ComponentRegistration componentRegistration
)
Visual Basic (Declaration)
Public Function RegisterComponent ( _
	componentRegistration As ComponentRegistration _
) As IComponentDescriptor

Parameters

componentRegistration
Type: Gallio.Runtime.Extensibility..::.ComponentRegistration
The component registration.

Return Value

The new component descriptor.

Implements

IRegistry..::.RegisterComponent(ComponentRegistration)

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if componentRegistration is null.
System..::.ArgumentExceptionThrown if there is already a component registered with the same id or if the plugin or service does not belong to this registry or if the component implements a service provided by a plugin that was not listed as a plugin dependency of the component's plugin.

See Also