DateTimeOffsetConverter Class

Definition

Provides a type converter to convert DateTimeOffset structures to and from various other representations.

public ref class DateTimeOffsetConverter : System::ComponentModel::TypeConverter
public class DateTimeOffsetConverter : System.ComponentModel.TypeConverter
type DateTimeOffsetConverter = class
    inherit TypeConverter
Public Class DateTimeOffsetConverter
Inherits TypeConverter
Inheritance
DateTimeOffsetConverter

Constructors

Name Description
DateTimeOffsetConverter()

Initializes a new instance of the DateTimeOffsetConverter class.

Methods

Name Description
CanConvertFrom(ITypeDescriptorContext, Type)

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

CanConvertFrom(Type)

Returns whether this converter can convert an object of the given type to the type of this converter.

(Inherited from TypeConverter)
CanConvertTo(ITypeDescriptorContext, Type)

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

CanConvertTo(Type)

Returns whether this converter can convert the object to the specified type.

(Inherited from TypeConverter)
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object)

Converts the specified object to a DateTimeOffset.

ConvertFrom(Object)

Converts the given value to the type of this converter.

(Inherited from