 | IFactoryTBaseTypeTryCreateInstance Method |
Tries to create an item instance with type-alias
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxbool TryCreateInstance(
string typeAlias,
out TBaseType? result
)
Function TryCreateInstance (
typeAlias As String,
<OutAttribute> ByRef result As TBaseType
) As Boolean
Dim instance As IFactory
Dim typeAlias As String
Dim result As TBaseType
Dim returnValue As Boolean
returnValue = instance.TryCreateInstance(typeAlias,
result)
abstract TryCreateInstance :
typeAlias : string *
result : 'TBaseType byref -> bool
Parameters
- typeAlias
- Type: SystemString
- result
- Type: TBaseType
Return Value
Type:
Boolean if instance was created successfully,
otherwise.
See Also