| LogLevelTypeConverterConvertFrom Method (ITypeDescriptorContext, CultureInfo, Object) |
Converts the given object to the type of this converter, using the specified context and culture information.
Namespace:
NLog.Attributes
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public override Object ConvertFrom(
ITypeDescriptorContext context,
CultureInfo culture,
Object value
)
Public Overrides Function ConvertFrom (
context As ITypeDescriptorContext,
culture As CultureInfo,
value As Object
) As Object
Dim instance As LogLevelTypeConverter
Dim context As ITypeDescriptorContext
Dim culture As CultureInfo
Dim value As Object
Dim returnValue As Object
returnValue = instance.ConvertFrom(context,
culture, value)
abstract ConvertFrom :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object -> Object
override ConvertFrom :
context : ITypeDescriptorContext *
culture : CultureInfo *
value : Object -> Object
Parameters
- context
- Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context. - culture
- Type: System.GlobalizationCultureInfo
The CultureInfo to use as the current culture. - value
- Type: SystemObject
The Object to convert.
Return Value
Type:
ObjectAn
Object that represents the converted value.
Exceptions Exception | Condition |
---|
NotSupportedException | The conversion cannot be performed. |
See Also