﻿<?xml version="1.0" encoding="utf-8"?><Type Name="ThaiBuddhistCalendar" FullName="System.Globalization.ThaiBuddhistCalendar"><TypeSignature Maintainer="auto" Language="C#" Value="public class ThaiBuddhistCalendar : System.Globalization.Calendar" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable ThaiBuddhistCalendar extends System.Globalization.Calendar" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Globalization.Calendar</BaseTypeName></Base><Interfaces /><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The Thai Buddhist calendar works exactly like the Gregorian calendar, except that the year and era are different.</para><block subset="none" type="note"><para>For information about using the <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class and the other calendar classes in the .NET Framework, see <format type="text/html"><a href="0c1534e5-979b-4c8a-a588-1c24301aefb3">Working with Calendars</a></format>.</para></block><para>The <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class recognizes only the current era.</para><para>Leap years in the Thai Buddhist calendar correspond to the same leap years in the Gregorian calendar. A leap year in the Gregorian calendar is defined as a Gregorian year that is evenly divisible by four, except if it is divisible by 100. However, Gregorian years that are divisible by 400 are leap years. A common year has 365 days and a leap year has 366 days.</para><para>The Thai Buddhist calendar has 12 months with 28 to 31 days each: </para><list type="table"><listheader><item><term><para>GetMonth value </para></term><description><para>Month </para></description><description><para>Days in common years </para></description><description><para>Days in leap years </para></description></item></listheader><item><term><para>1 </para></term><description><para>มกราคม (January) </para></description><description><para>31 </para></description><description><para>31 </para></description></item><item><term><para>2 </para></term><description><para>กุมภาพันธ์ (February) </para></description><description><para>28 </para></description><description><para>29 </para></description></item><item><term><para>3 </para></term><description><para>มีนาคม (March) </para></description><description><para>31 </para></description><description><para>31 </para></description></item><item><term><para>4 </para></term><description><para>เมษายน (April) </para></description><description><para>30 </para></description><description><para>30 </para></description></item><item><term><para>5 </para></term><description><para>พฤษภาคม (May) </para></description><description><para>31 </para></description><description><para>31 </para></description></item><item><term><para>6 </para></term><description><para>มิถุนายน (June) </para></description><description><para>30 </para></description><description><para>30 </para></description></item><item><term><para>7 </para></term><description><para>กรกฎาคม (July) </para></description><description><para>31 </para></description><description><para>31 </para></description></item><item><term><para>8 </para></term><description><para>สิงหาคม (August) </para></description><description><para>31 </para></description><description><para>31 </para></description></item><item><term><para>9 </para></term><description><para>กันยายน (September) </para></description><description><para>30 </para></description><description><para>30 </para></description></item><item><term><para>10 </para></term><description><para>ตุลาคม (October) </para></description><description><para>31 </para></description><description><para>31 </para></description></item><item><term><para>11 </para></term><description><para>พฤศจิกายน (November) </para></description><description><para>30 </para></description><description><para>30 </para></description></item><item><term><para>12 </para></term><description><para>ธันวาคม (December) </para></description><description><para>31 </para></description><description><para>31 </para></description></item></list><para>February has 29 days during leap years and 28 during common years.</para><para>The date January 1, 2001 A.D. in the Gregorian calendar is equivalent to the first day of January in the year 2544 of the current era in the Thai Buddhist calendar.</para><para>Each <see cref="T:System.Globalization.CultureInfo" /> supports a set of calendars. The <see cref="P:System.Globalization.CultureInfo.Calendar" /> property returns the default calendar for the culture, and the <see cref="P:System.Globalization.CultureInfo.OptionalCalendars" /> property returns an array containing all the calendars supported by the culture. To change the calendar used by a <see cref="T:System.Globalization.CultureInfo" />, the application should set the <see cref="P:System.Globalization.DateTimeFormatInfo.Calendar" /> property of <see cref="P:System.Globalization.CultureInfo.DateTimeFormat" /> to a new <see cref="T:System.Globalization.Calendar" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents the Thai Buddhist calendar.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public ThaiBuddhistCalendar ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class.</para></summary></Docs></Member><Member MemberName="AddMonths"><MemberSignature Language="C#" Value="public override DateTime AddMonths (DateTime time, int months);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance valuetype System.DateTime AddMonths(valuetype System.DateTime time, int32 months) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.DateTime</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /><Parameter Name="months" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The day part of the resulting <see cref="T:System.DateTime" /> is affected if the resulting day is not a valid day in the resulting month of the resulting year. It is changed to the last valid day in the resulting month of the resulting year. The year part of the resulting <see cref="T:System.DateTime" /> is affected if the resulting month is outside the year of the specified <see cref="T:System.DateTime" />. This implementation supports only the current era. Therefore, <see cref="T:System.ArgumentException" /> is thrown if the resulting year is outside the era of the specified <see cref="T:System.DateTime" />. The time-of-day part of the resulting <see cref="T:System.DateTime" /> remains the same as the specified <see cref="T:System.DateTime" />.</para><para>For example, if the specified month is October, which has 31 days, the specified day is the 31st day of that month, and the value of the <paramref name="months" /> parameter is 6, the resulting year is one more than the specified year, the resulting month is April, and the resulting day is the 30th day, which is the last day in April.</para><para>If the value of the <paramref name="months" /> parameter is negative, the resulting <see cref="T:System.DateTime" /> is earlier than the specified <see cref="T:System.DateTime" />.</para><para>The <see cref="P:System.DateTime.Kind" /> property of the returned <see cref="T:System.DateTime" /> value always equals <see cref="F:System.DateTimeKind.Unspecified" />. You can preserve the <see cref="P:System.DateTime.Kind" /> property of the <paramref name="time" /> parameter by calling the <see cref="M:System.DateTime.SpecifyKind(System.DateTime,System.DateTimeKind)" /> method, as the following example shows.</para><para>code reference: System.Globalization.Calendar.AddMethods#5</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a <see cref="T:System.DateTime" /> that is the specified number of months away from the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.DateTime" /> that results from adding the specified number of months to the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to which to add months. </param><param name="months"><attribution license="cc4" from="Microsoft" modified="false" />The number of months to add. </param></Docs></Member><Member MemberName="AddYears"><MemberSignature Language="C#" Value="public override DateTime AddYears (DateTime time, int years);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance valuetype System.DateTime AddYears(valuetype System.DateTime time, int32 years) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.DateTime</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /><Parameter Name="years" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The day part of the resulting <see cref="T:System.DateTime" /> is affected if the resulting day is not a valid day in the resulting month of the resulting year. It is changed to the last valid day in the resulting month of the resulting year. The month part of the resulting <see cref="T:System.DateTime" /> remains the same as the specified <see cref="T:System.DateTime" />. This implementation supports only the current era. Therefore, <see cref="T:System.ArgumentException" /> is thrown if the resulting year is outside the era of the specified <see cref="T:System.DateTime" />. The time-of-day part of the resulting <see cref="T:System.DateTime" /> remains the same as the specified <see cref="T:System.DateTime" />.</para><para>For example, February has 28 days except during leap years, when it has 29 days. If the specified date is the 29th day of February in a leap year and the value of <paramref name="years" /> is 1, the resulting date is the 28th day of February in the following year.</para><para>If <paramref name="years" /> is negative, the resulting <see cref="T:System.DateTime" /> is earlier than the specified <see cref="T:System.DateTime" />.</para><para>The <see cref="P:System.DateTime.Kind" /> property of the returned <see cref="T:System.DateTime" /> value always equals <see cref="F:System.DateTimeKind.Unspecified" />. You can preserve the <see cref="P:System.DateTime.Kind" /> property of the <paramref name="time" /> parameter by calling the <see cref="M:System.DateTime.SpecifyKind(System.DateTime,System.DateTimeKind)" /> method, as the following example shows.</para><para>code reference: System.Globalization.Calendar.AddMethods#8</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a <see cref="T:System.DateTime" /> that is the specified number of years away from the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.DateTime" /> that results from adding the specified number of years to the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to which to add years. </param><param name="years"><attribution license="cc4" from="Microsoft" modified="false" />The number of years to add. </param></Docs></Member><Member MemberName="AlgorithmType"><MemberSignature Language="C#" Value="public override System.Globalization.CalendarAlgorithmType AlgorithmType { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Globalization.CalendarAlgorithmType AlgorithmType" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Globalization.CalendarAlgorithmType</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether the current calendar is solar-based, lunar-based, or a combination of both.</para></summary></Docs></Member><Member MemberName="Eras"><MemberSignature Language="C#" Value="public override int[] Eras { get; }" /><MemberSignature Language="ILAsm" Value=".property instance int32[] Eras" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32[]</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The values in the array returned by this property are numbers that range from 1 to the largest era number. The largest era number is returned in the first array element and the smallest era number is returned in the last element.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the list of eras in the <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class.</para></summary></Docs></Member><Member MemberName="GetDayOfMonth"><MemberSignature Language="C#" Value="public override int GetDayOfMonth (DateTime time);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetDayOfMonth(valuetype System.DateTime time) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the day of the month in the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An integer from 1 to 31 that represents the day of the month in the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to read. </param></Docs></Member><Member MemberName="GetDayOfWeek"><MemberSignature Language="C#" Value="public override DayOfWeek GetDayOfWeek (DateTime time);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance valuetype System.DayOfWeek GetDayOfWeek(valuetype System.DateTime time) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.DayOfWeek</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.DayOfWeek" /> values are as follows: </para><list type="table"><listheader><item><term><para>DayOfWeek value </para></term><description><para>which indicates </para></description></item></listheader><item><term><para>Sunday </para></term><description><para>อาทิตย์ </para></description></item><item><term><para>Monday </para></term><description><para>จันทร์ </para></description></item><item><term><para>Tuesday </para></term><description><para>อังคาร </para></description></item><item><term><para>Wednesday </para></term><description><para>พุธ </para></description></item><item><term><para>Thursday </para></term><description><para>พฤหัสบดี </para></description></item><item><term><para>Friday </para></term><description><para>ศุกร์ </para></description></item><item><term><para>Saturday </para></term><description><para>เสาร์ </para></description></item></list></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the day of the week in the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.DayOfWeek" /> value that represents the day of the week in the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to read. </param></Docs></Member><Member MemberName="GetDayOfYear"><MemberSignature Language="C#" Value="public override int GetDayOfYear (DateTime time);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetDayOfYear(valuetype System.DateTime time) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The day of the year is defined as the number of days from the first day of the year. For example, <see cref="M:System.Globalization.ThaiBuddhistCalendar.GetDayOfYear(System.DateTime)" /> for the first day of the first month returns 1, and <see cref="M:System.Globalization.ThaiBuddhistCalendar.GetDayOfYear(System.DateTime)" /> for the last day of the last month returns the total number of days in that year. The total is the same as the value returned by <see cref="M:System.Globalization.ThaiBuddhistCalendar.GetDaysInYear(System.Int32,System.Int32)" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the day of the year in the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An integer from 1 to 366 that represents the day of the year in the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to read. </param></Docs></Member><Member MemberName="GetDaysInMonth"><MemberSignature Language="C#" Value="public override int GetDaysInMonth (int year, int month, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetDaysInMonth(int32 year, int32 month, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="month" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For example, this method returns 28 or 29 for February (<paramref name="month" /> = 2), depending on whether <paramref name="year" /> is a leap year.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the number of days in the specified month in the specified year in the specified era.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The number of days in the specified month in the specified year in the specified era.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the year. </param><param name="month"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 1 to 12 that represents the month. </param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the era. </param></Docs></Member><Member MemberName="GetDaysInYear"><MemberSignature Language="C#" Value="public override int GetDaysInYear (int year, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetDaysInYear(int32 year, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For example, this method returns 365 or 366, depending on whether <paramref name="year" /> is a leap year.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the number of days in the specified year in the specified era.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The number of days in the specified year in the specified era.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the year. </param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the era. </param></Docs></Member><Member MemberName="GetEra"><MemberSignature Language="C#" Value="public override int GetEra (DateTime time);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetEra(valuetype System.DateTime time) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class recognizes only the current era.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the era in the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An integer that represents the era in the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to read. </param></Docs></Member><Member MemberName="GetLeapMonth"><MemberSignature Language="C#" Value="public override int GetLeapMonth (int year, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetLeapMonth(int32 year, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>In a calendar that supports the notion of a leap month, the leap month can occur either after a particular month or after any month in a year. For example, the <see cref="M:System.Globalization.EastAsianLunisolarCalendar.GetMonth(System.DateTime)" /> method returns a number between 1 and 13 that indicates the month associated with a specified date. If there is a leap month between the eighth and ninth months of the year, the <see cref="M:System.Globalization.EastAsianLunisolarCalendar.GetMonth(System.DateTime)" /> method returns 8 for the eighth month, 9 for the leap eighth month, and 10 for the ninth month.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Calculates the leap month for a specified year and era.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The return value is always 0 because the <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class does not support the notion of a leap month.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />A year.</param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An era.</param></Docs></Member><Member MemberName="GetMonth"><MemberSignature Language="C#" Value="public override int GetMonth (DateTime time);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetMonth(valuetype System.DateTime time) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the month in the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An integer from 1 to 12 that represents the month in the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to read. </param></Docs></Member><Member MemberName="GetMonthsInYear"><MemberSignature Language="C#" Value="public override int GetMonthsInYear (int year, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetMonthsInYear(int32 year, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the number of months in the specified year in the specified era.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The number of months in the specified year in the specified era.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the year. </param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the era. </param></Docs></Member><Member MemberName="GetWeekOfYear"><MemberSignature Language="C#" Value="public override int GetWeekOfYear (DateTime time, System.Globalization.CalendarWeekRule rule, DayOfWeek firstDayOfWeek);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetWeekOfYear(valuetype System.DateTime time, valuetype System.Globalization.CalendarWeekRule rule, valuetype System.DayOfWeek firstDayOfWeek) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /><Parameter Name="rule" Type="System.Globalization.CalendarWeekRule" /><Parameter Name="firstDayOfWeek" Type="System.DayOfWeek" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This method can be used to determine the number of weeks in the year by setting the <paramref name="time" /> parameter to the last day of the year.</para><para><see cref="P:System.Globalization.CultureInfo.DateTimeFormat" /> contains culture-specific values that can be used for the <paramref name="rule" /> and <paramref name="firstDayOfWeek" /> parameters.</para><para>The <see cref="P:System.Globalization.DateTimeFormatInfo.FirstDayOfWeek" /> property of <see cref="P:System.Globalization.CultureInfo.DateTimeFormat" /> contains the default <see cref="T:System.DayOfWeek" /> value that represents the first day of the week for a specific culture, using the calendar specified in the <see cref="P:System.Globalization.DateTimeFormatInfo.Calendar" /> property of <see cref="P:System.Globalization.CultureInfo.DateTimeFormat" />.</para><para>The <see cref="P:System.Globalization.DateTimeFormatInfo.CalendarWeekRule" /> property of <see cref="P:System.Globalization.CultureInfo.DateTimeFormat" /> contains the default <see cref="T:System.Globalization.CalendarWeekRule" /> value that defines a calendar week for a specific culture, using the calendar specified in the <see cref="P:System.Globalization.DateTimeFormatInfo.Calendar" /> property of <see cref="P:System.Globalization.CultureInfo.DateTimeFormat" />.</para><para>For example, in <see cref="T:System.Globalization.GregorianCalendar" />, <see cref="M:System.Globalization.Calendar.GetWeekOfYear(System.DateTime,System.Globalization.CalendarWeekRule,System.DayOfWeek)" /> for January 1 returns 1.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the week of the year that includes the date in the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A 1-based positive integer that represents the week of the year that includes the date in the <paramref name="time" /> parameter.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to read. </param><param name="rule"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Globalization.CalendarWeekRule" /> values that defines a calendar week. </param><param name="firstDayOfWeek"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.DayOfWeek" /> values that represents the first day of the week. </param></Docs></Member><Member MemberName="GetYear"><MemberSignature Language="C#" Value="public override int GetYear (DateTime time);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetYear(valuetype System.DateTime time) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="time" Type="System.DateTime" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns the year in the specified <see cref="T:System.DateTime" />.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An integer that represents the year in the specified <see cref="T:System.DateTime" />.</para></returns><param name="time"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.DateTime" /> to read. </param></Docs></Member><Member MemberName="IsLeapDay"><MemberSignature Language="C#" Value="public override bool IsLeapDay (int year, int month, int day, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool IsLeapDay(int32 year, int32 month, int32 day, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="month" Type="System.Int32" /><Parameter Name="day" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Leap years in the Thai Buddhist calendar correspond to the same leap years in the Gregorian calendar. A leap year in the Gregorian calendar is defined as a Gregorian year that is evenly divisible by four, except if it is divisible by 100. However, Gregorian years that are divisible by 400 are leap years. A common year has 365 days and a leap year has 366 days.</para><para>A leap day is a day that occurs only in a leap year. For example, the 29th day of February is the only leap day.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the specified date in the specified era is a leap day.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the specified day is a leap day; otherwise, false.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the year. </param><param name="month"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 1 to 12 that represents the month. </param><param name="day"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 1 to 31 that represents the day. </param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the era. </param></Docs></Member><Member MemberName="IsLeapMonth"><MemberSignature Language="C#" Value="public override bool IsLeapMonth (int year, int month, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool IsLeapMonth(int32 year, int32 month, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="month" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Leap years in the Thai Buddhist calendar correspond to the same leap years in the Gregorian calendar. A leap year in the Gregorian calendar is defined as a Gregorian year that is evenly divisible by four, except if it is divisible by 100. However, Gregorian years that are divisible by 400 are leap years. A common year has 365 days and a leap year has 366 days.</para><para>A leap month is an entire month that occurs only in a leap year. The Thai Buddhist calendar does not have any leap months.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the specified month in the specified year in the specified era is a leap month.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>This method always returns false, unless overridden by a derived class.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the year. </param><param name="month"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 1 to 12 that represents the month. </param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the era. </param></Docs></Member><Member MemberName="IsLeapYear"><MemberSignature Language="C#" Value="public override bool IsLeapYear (int year, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool IsLeapYear(int32 year, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Leap years in the Thai Buddhist calendar correspond to the same leap years in the Gregorian calendar. A leap year in the Gregorian calendar is defined as a Gregorian year that is evenly divisible by four, except if it is divisible by 100. However, Gregorian years that are divisible by 400 are leap years. A common year has 365 days and a leap year has 366 days.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Determines whether the specified year in the specified era is a leap year.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>true if the specified year is a leap year; otherwise, false.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the year. </param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the era. </param></Docs></Member><Member MemberName="MaxSupportedDateTime"><MemberSignature Language="C#" Value="public override DateTime MaxSupportedDateTime { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.DateTime MaxSupportedDateTime" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.DateTime</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the latest date and time supported by the <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class.</para></summary></Docs></Member><Member MemberName="MinSupportedDateTime"><MemberSignature Language="C#" Value="public override DateTime MinSupportedDateTime { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.DateTime MinSupportedDateTime" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(false)</AttributeName></Attribute></Attributes><ReturnValue><ReturnType>System.DateTime</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the earliest date and time supported by the <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class.</para></summary></Docs></Member><Member MemberName="ThaiBuddhistEra"><MemberSignature Language="C#" Value="public const int ThaiBuddhistEra = 1;" /><MemberSignature Language="ILAsm" Value=".field public static literal int32 ThaiBuddhistEra = (1)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters /><MemberValue>1</MemberValue><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class recognizes only the current era. This field always returns 1.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents the current era. This field is constant.</para></summary></Docs></Member><Member MemberName="ToDateTime"><MemberSignature Language="C#" Value="public override DateTime ToDateTime (int year, int month, int day, int hour, int minute, int second, int millisecond, int era);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance valuetype System.DateTime ToDateTime(int32 year, int32 month, int32 day, int32 hour, int32 minute, int32 second, int32 millisecond, int32 era) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.DateTime</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /><Parameter Name="month" Type="System.Int32" /><Parameter Name="day" Type="System.Int32" /><Parameter Name="hour" Type="System.Int32" /><Parameter Name="minute" Type="System.Int32" /><Parameter Name="second" Type="System.Int32" /><Parameter Name="millisecond" Type="System.Int32" /><Parameter Name="era" Type="System.Int32" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a <see cref="T:System.DateTime" /> that is set to the specified date and time in the specified era.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.DateTime" /> that is set to the specified date and time in the current era.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the year. </param><param name="month"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 1 to 12 that represents the month. </param><param name="day"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 1 to 31 that represents the day. </param><param name="hour"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 0 to 23 that represents the hour. </param><param name="minute"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 0 to 59 that represents the minute. </param><param name="second"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 0 to 59 that represents the second. </param><param name="millisecond"><attribution license="cc4" from="Microsoft" modified="false" />An integer from 0 to 999 that represents the millisecond. </param><param name="era"><attribution license="cc4" from="Microsoft" modified="false" />An integer that represents the era. </param></Docs></Member><Member MemberName="ToFourDigitYear"><MemberSignature Language="C#" Value="public override int ToFourDigitYear (int year);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 ToFourDigitYear(int32 year) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Parameters><Parameter Name="year" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para><see cref="P:System.Globalization.ThaiBuddhistCalendar.TwoDigitYearMax" /> is the last year in the 100-year range that can be represented by a two-digit year. The century is determined by finding the sole occurrence of the two-digit <paramref name="year" /> within that 100-year range. For example, if <see cref="P:System.Globalization.ThaiBuddhistCalendar.TwoDigitYearMax" /> is set to 2029, the 100-year range is from 1930 to 2029. Therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.</para><para><see cref="M:System.Globalization.ThaiBuddhistCalendar.ToFourDigitYear(System.Int32)" /> supports either a two-digit year or a four-digit year. Passing a two-digit year value (less than 100) causes the method to convert the value to a four-digit value according to the <see cref="P:System.Globalization.ThaiBuddhistCalendar.TwoDigitYearMax" /> value representing the appropriate century. If the application supplies a four-digit year value that is within the supported calendar range to <see cref="M:System.Globalization.ThaiBuddhistCalendar.ToFourDigitYear(System.Int32)" />, the method returns the actual input value. If the application supplies a four-digit value that is outside the supported calendar range, or if it supplies a negative value, the method throws an exception.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Converts the specified year to a four-digit year by using the <see cref="P:System.Globalization.ThaiBuddhistCalendar.TwoDigitYearMax" /> property to determine the appropriate century.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>An integer that contains the four-digit representation of <paramref name="year" />.</para></returns><param name="year"><attribution license="cc4" from="Microsoft" modified="false" />A two-digit or four-digit integer that represents the year to convert. </param></Docs></Member><Member MemberName="TwoDigitYearMax"><MemberSignature Language="C#" Value="public override int TwoDigitYearMax { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 TwoDigitYearMax" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This property allows a 2-digit year to be properly translated to a 4-digit year. For example, in the Gregorian calendar, if this property is set to 2029, the 100-year range is from 1930 to 2029. Therefore, a 2-digit value of 30 is interpreted as 1930, while a 2-digit value of 29 is interpreted as 2029.</para><para>The initial value of this property is derived from the settings in the regional and language options portion of Control Panel. However, that information can change during the life of the <see cref="T:System.AppDomain" />. The <see cref="T:System.Globalization.ThaiBuddhistCalendar" /> class does not detect changes in the system settings automatically.</para><para>The application should set this value to 99 to indicate that 2-digit years are to be taken literally. For example, if this property is set to 99, the 100-year range is from 0 (not a valid value for most calendars) to 99. Therefore, a 2-digit value of 30 is interpreted as 30.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the last year of a 100-year range that can be represented by a 2-digit year.</para></summary></Docs></Member></Members></Type>