CreateInstance(Type, ActivatorSecurityToken)
Creates an instance of a give type.
Declaration
object CreateInstance(Type objectType, ActivatorSecurityToken securityToken)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType | Type of object whose 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 nuill
.