GYearMonth StructureGYearMonth StructureGYearMonth Structure
Represents a Gregorian year and month. The corresponding XML Schema type is
xs:gYearMonth
.
Syntax
Public NotInheritable GYearMonth _ Implements IEquatable(Of GYearMonth)
public sealed GYearMonth : IEquatable<GYearMonth>
public: value class GYearMonth sealed : IEquatable<GYearMonth>
The GYearMonthGYearMonthGYearMonth
type exposes the following members.
Constructors
Constructor | Description | |
---|---|---|
GYearMonth (long, int)GYearMonth (Long, Integer)GYearMonth (long, int) | Initializes a new instance of the GYearMonthGYearMonthGYearMonth structure with the specified year and month, but without a specified time zone. | |
GYearMonth (long, int, TimeZone?)GYearMonth (Long, Integer, Nullable(Of TimeZone))GYearMonth (long, int, Nullable<TimeZone>) | Initializes a new instance of the GYearMonthGYearMonthGYearMonth structure with the specified year, month 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 (GYearMonth)Equals (GYearMonth)Equals (GYearMonth) | Indicates whether this instance is equal to another GYearMonthGYearMonthGYearMonth. | |
Equals (GYearMonth, GYearMonth, TimeZone)Equals (GYearMonth, GYearMonth, TimeZone)Equals (GYearMonth, GYearMonth, TimeZone) | Indicates whether a specified GYearMonthGYearMonthGYearMonth is equal to another specified GYearMonthGYearMonthGYearMonth given the supplied implicit time zone. | |
Object.FinalizeObject.FinalizeObject::Finalize | Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject 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:gYearMonth to its GYearMonthGYearMonthGYearMonth equivalent.
| |
ToStringToStringToString | Returns the canonical lexical representation of this GYearMonthGYearMonthGYearMonth (Overrides ValueType.ToStringValueType.ToStringValueType::ToString) | |
TryParseTryParseTryParse |
Converts a lexical representation of an xs:gYearMonth to its GYearMonthGYearMonthGYearMonth equivalent.
A return value indicates whether the conversion succeeded or failed.
|
Operators
Operator | Description | |
---|---|---|
EqualityEqualityEquality | Indicates whether a specified GYearMonthGYearMonthGYearMonth is equal to another specified GYearMonthGYearMonthGYearMonth. | |
InequalityInequalityInequality | Indicates whether a specified GYearMonthGYearMonthGYearMonth is not equal to another specified GYearMonthGYearMonthGYearMonth. |
Remarks
A GYearMonthGYearMonthGYearMonth represents a Gregorian calendar year and month.
Note that the year 1 B.C. is represented by -1, and so 0 is not a valid year.