| IPropertyTypeConverterConvert Method |
Parses the input value and converts into the wanted type
Namespace:
NLog.Config
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax Object 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