Export (0) Print
Expand All

DateTimeOffsetConverter.CanConvertFrom Method (ITypeDescriptorContext, Type)

Returns a value that indicates whether an object of the specified source type can be converted to a DateTimeOffset.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public override bool CanConvertFrom(
	ITypeDescriptorContext context,
	Type sourceType
)

Parameters

context
Type: System.ComponentModel.ITypeDescriptorContext

The date format context.

sourceType
Type: System.Type

The source type to check.

Return Value

Type: System.Boolean
true if the specified type can be converted to a DateTimeOffset; otherwise, false.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1, 3.0 SP2, 2.0 SP2

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft