GMonth StructureGMonth StructureGMonth Structure

Represents a Gregorian month. The corresponding XML Schema type is xs:gMonth.

Syntax

Public NotInheritable  GMonth _
        Implements IEquatable(Of GMonth)
public sealed  GMonth : IEquatable<GMonth>
public:
value class GMonth sealed : IEquatable<GMonth>
 
The GMonthGMonthGMonth type exposes the following members.

Constructors

 ConstructorDescription
Public methodGMonth (int)GMonth (Integer)GMonth (int) Initializes a new instance of the GMonthGMonthGMonth structure with the specified month, but without a time zone.
Public methodGMonth (int, TimeZone?)GMonth (Integer, Nullable(Of TimeZone))GMonth (int, Nullable<TimeZone>) Initializes a new instance of the GMonthGMonthGMonth structure with the specified month of the year and optional time zone.

Top

Properties

 PropertyDescription
Public propertyMonthMonthMonth Gets the month of the year.
Public propertyTimeZoneTimeZoneTimeZone Gets the optional time zone component of this GMonthGMonthGMonth.

Top

Methods

 MethodDescription
Public methodEquals (object)Equals (Object)Equals (object^) Determines whether this instance is equal to a specified object. (Overrides ValueType.EqualsValueType.EqualsValueType::Equals)
Public methodEquals (GMonth)Equals (GMonth)Equals (GMonth) Determines whether this instance is equal to another GMonthGMonthGMonth.
Public methodstaticEquals (GMonth, GMonth, TimeZone)Equals (GMonth, GMonth, TimeZone)Equals (GMonth, GMonth, TimeZone) Indicates whether a specified GMonthGMonthGMonth is equal to another specified GMonthGMonthGMonth given the supplied implicit time zone.
Protected methodObject.FinalizeObject.FinalizeObject::FinalizeAllows 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)
Public methodGetHashCodeGetHashCodeGetHashCode Returns the hash code for this instance. (Overrides ValueType.GetHashCodeValueType.GetHashCodeValueType::GetHashCode)
Public methodObject.GetTypeObject.GetTypeObject::GetTypeGets the TypeTypeType of the current instance.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseCloneCreates a shallow copy of the current objectObjectobject.(Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodstaticParseParseParse Converts the lexical representation of an xs:gMonth to its GMonthGMonthGMonth equivalent.
Public methodToStringToStringToString Returns the canonical lexical representation of this GMonthGMonthGMonth (Overrides ValueType.ToStringValueType.ToStringValueType::ToString)
Public methodstaticTryParseTryParseTryParse Converts a lexical representation of an xs:gMonth to its GMonthGMonthGMonth equivalent. A return value indicates whether the conversion succeeded or failed.

Top

Operators

 OperatorDescription
Public operatorstaticEqualityEqualityEquality Indicates whether a specified GMonthGMonthGMonth is equal to another specified GMonthGMonthGMonth.
Public operatorstaticInequalityInequalityInequality Indicates whether a specified GMonthGMonthGMonth is not equal to another specified GMonthGMonthGMonth.

Top

Remarks

A GMonthGMonthGMonth is a Gregorian month that recurs every year. It can be used to represent a specific month of the year. To say, for example, that Christmas falls in the month of December.