public sealed class DateTimeConverter : TypeConverter<DateTime>,
ILocalizablePublic NotInheritable Class DateTimeConverter
Inherits TypeConverter(Of DateTime)
Implements ILocalizablepublic ref class DateTimeConverter sealed : public TypeConverter<DateTime>,
ILocalizable[<SealedAttribute>]
type DateTimeConverter =
class
inherit TypeConverter<DateTime>
interface ILocalizable
end| DateTimeConverter | Initializes a new DateTimeConverter instance. |
| AcceptsNull |
Gets a value indicating whether the converter accepts
null references as input.
(Overrides TypeConverterTAcceptsNull) |
| DataType |
The data type the converter converts.
(Inherited from TypeConverterT) |
| DefaultValue |
Gets the value to return if the parser finds no data in the CSV,
or if parsing fails and
the Throwing property is false.
(Inherited from TypeConverterT) |
| Format | The format string to use. |
| FormatProvider | Gets the IFormatProvider instance that provides culture-specific formatting information. |
| ParseExact | Gets a value indicating whether the text in the CSV file must exactly match the format determined with Format. |
| Styles | Gets a combined value of the DateTimeStyles enum that provides additional information for parsing. |
| Throwing |
Gets a value indicating whether the converter throws a
FormatException
when a parsing error occurs, or if it returns
DefaultValue value instead.
(Inherited from TypeConverterT) |
| ConvertToString |
Converts value to a String or null.
(Overrides TypeConverterTConvertToString(T)) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| Parse |
Parses a read-only span of characters and returns
the corresponding .NET object.
(Inherited from TypeConverterT) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| TryParse |
Tries to parse a read-only span of characters as a T value.
(Overrides TypeConverterTTryParse(ReadOnlySpanChar, T)) |