CreateInstance(Type, ActivatorSecurityToken)
Creates an instance of a given type.
Declaration
object CreateInstance(Type objectType, ActivatorSecurityToken securityToken)Parameters
| Type | Name | Description |
|---|---|---|
| Type | objectType | The type of the object of which an instance is requested. |
| ActivatorSecurityToken | securityToken | A security token. |
Returns
| Type | Description |
|---|---|
| object | A new instance of type |
Remarks
For security reasons, implementations should throw an exception or return null if securityToken is null.