Click or drag to resize
DigitalRuneServiceContainerOnCreateInstance Method
Creates an instance of the type with the specified constructor arguments.

Namespace: DigitalRune.ServiceLocation
Assembly: DigitalRune.ServiceLocation (in DigitalRune.ServiceLocation.dll) Version: 1.3.0.0 (1.3.0.13596)
Syntax
protected virtual Object OnCreateInstance(
	Type type,
	Object[] args
)

Parameters

type
Type: SystemType
The type of the instance.
args
Type: SystemObject
The constructor arguments.

Return Value

Type: Object
A new instance of the requested type.
Remarks
Notes to Inheritors: When overriding OnCreateInstance(Type, Object) be sure to throw an exception if the activation fails. The method must not return .
See Also