 | IPropertyTypeConverterConvert Method |
Parses the input value and converts into the wanted type
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
SyntaxObject? Convert(
Object? propertyValue,
Type propertyType,
string? format,
IFormatProvider? formatProvider
)
Function Convert (
propertyValue As Object,
propertyType As Type,
format As String,
formatProvider As IFormatProvider
) As Object
Dim instance As IPropertyTypeConverter
Dim propertyValue As Object
Dim propertyType As Type
Dim format As String
Dim formatProvider As IFormatProvider
Dim returnValue As Object
returnValue = instance.Convert(propertyValue,
propertyType, format, formatProvider)
abstract Convert :
propertyValue : Object *
propertyType : Type *
format : string *
formatProvider : IFormatProvider -> Object
Parameters
- propertyValue
- Type: SystemObject
Input Value - propertyType
- Type: SystemType
Wanted Type - format
- Type: SystemString
Format to use when parsing - formatProvider
- Type: SystemIFormatProvider
Culture to use when parsing
Return Value
Type:
ObjectOutput value with wanted type
See Also