| IFactoryTBaseTypeTryCreateInstance Method |
Tries to create an item instance with type-alias
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax bool 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:
BooleanTrue if instance was created successfully, false otherwise.
See Also