A Sandcastle Documented Class Library

# IExtensionService ActivateComponent Method

Activates the component of the specified type.

Namespace: Dundas.BI.Extensibility
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    Object ActivateComponent(
    	Type type,
    	params Object[] args
    )

    Function ActivateComponent (
    	type As Type,
    	ParamArray args As Object()
    ) As Object

    Object^ ActivateComponent(
    	Type^ type,
    	... array<Object^>^ args
    )

    abstract ActivateComponent :
            type : Type *
            args : Object[] -> Object

#### Parameters

type
  Type: System
  Type
  The type to activate.
args
  Type:
  System
  Object
  The arguments required by the type's constructor.

#### Return Value

Type: Object
A new instance of the specified type, or
if there was an error.
Exceptions

Exception | Condition
--- | ---
ArgumentNullException | type was .

Remarks
If type inherits from ComponentBase and is part of an extension package, the PackageId property will be automatically set by this method.
See Also

#### Reference

IExtensionService Interface
Dundas.BI.Extensibility Namespace