GYear StructureGYear StructureGYear Structure
Represents a Gregorian year. The corresponding XML Schema type is
xs:gYear
.
Syntax
Public NotInheritable GYear _ Implements IEquatable(Of GYear)
public sealed GYear : IEquatable<GYear>
public: value class GYear sealed : IEquatable<GYear>
The GYearGYearGYear
type exposes the following members.
Constructors
Constructor | Description | |
---|---|---|
![]() | GYear (long)GYear (Long)GYear (long) | Initializes a new instance of the GYearGYearGYear structure with the specified calendar year, but without a time zone. |
![]() | GYear (long, TimeZone?)GYear (Long, Nullable(Of TimeZone))GYear (long, Nullable<TimeZone>) | Initializes a new instance of the GYearGYearGYear structure with the specified calendar year and optional time zone. |
Properties
Methods
Method | Description | |
---|---|---|
![]() | Equals (object)Equals (Object)Equals (object^) | Determines whether this instance is equal to a specified object. (Overrides ValueType.EqualsValueType.EqualsValueType::Equals) |
![]() | Equals (GYear)Equals (GYear)Equals (GYear) | Determines whether this instance is equal to another GYearGYearGYear. |
![]() ![]() | Equals (GYear, GYear, TimeZone)Equals (GYear, GYear, TimeZone)Equals (GYear, GYear, TimeZone) | Indicates whether a specified GYearGYearGYear is equal to another specified GYearGYearGYear given the supplied implicit time zone. |
![]() | Object.FinalizeObject.FinalizeObject::Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | GetHashCodeGetHashCodeGetHashCode | Returns the hash code for this instance. (Overrides ValueType.GetHashCodeValueType.GetHashCodeValueType::GetHashCode) |
![]() | Object.GetTypeObject.GetTypeObject::GetType | Gets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() | Object.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone | Creates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object) |
![]() ![]() | ParseParseParse |
Converts the lexical representation of an xs:gYear to its GYearGYearGYear equivalent.
|
![]() | ToStringToStringToString | Returns the canonical lexical representation of this GYearGYearGYear. (Overrides ValueType.ToStringValueType.ToStringValueType::ToString) |
![]() ![]() | TryParseTryParseTryParse |
Converts a lexical representation of an xs:gYear to its GYearGYearGYear equivalent.
A return value indicates whether the conversion succeeded or failed.
|
Operators
Operator | Description | |
---|---|---|
![]() ![]() | EqualityEqualityEquality | Indicates whether a specified GYearGYearGYear is equal to another specified GYearGYearGYear. |
![]() ![]() | InequalityInequalityInequality | Indicates whether a specified GYearGYearGYear is not equal to another specified GYearGYearGYear. |
Fields
Remarks
A GYearGYearGYear represents a Gregorian calendar year.
Note that the year 1 B.C. is represented by -1, and so 0 is not a valid year.