| LogLevelTypeConverterCanConvertTo Method (ITypeDescriptorContext, Type) |
Returns whether this converter can convert the object to the specified type, using the specified context.
Namespace:
NLog.Attributes
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public override bool CanConvertTo(
ITypeDescriptorContext context,
Type destinationType
)
Public Overrides Function CanConvertTo (
context As ITypeDescriptorContext,
destinationType As Type
) As Boolean
Dim instance As LogLevelTypeConverter
Dim context As ITypeDescriptorContext
Dim destinationType As Type
Dim returnValue As Boolean
returnValue = instance.CanConvertTo(context,
destinationType)
abstract CanConvertTo :
context : ITypeDescriptorContext *
destinationType : Type -> bool
override CanConvertTo :
context : ITypeDescriptorContext *
destinationType : Type -> bool
Parameters
- context
- Type: System.ComponentModelITypeDescriptorContext
An ITypeDescriptorContext that provides a format context. - destinationType
- Type: SystemType
A Type that represents the type you want to convert to.
Return Value
Type:
Boolean if this converter can perform the conversion; otherwise,
.
See Also