CalendarAlgorithmType CalendarAlgorithmType CalendarAlgorithmType CalendarAlgorithmType Enum

정의

달력이 양력인지, 음력인지 또는 음양력인지를 지정합니다.Specifies whether a calendar is solar-based, lunar-based, or lunisolar-based.

public enum class CalendarAlgorithmType
[System.Runtime.InteropServices.ComVisible(true)]
public enum CalendarAlgorithmType
type CalendarAlgorithmType = 
Public Enum CalendarAlgorithmType
상속
CalendarAlgorithmTypeCalendarAlgorithmTypeCalendarAlgorithmTypeCalendarAlgorithmType
특성

필드

LunarCalendar LunarCalendar LunarCalendar LunarCalendar 2

음력 기반의 달력입니다.A lunar-based calendar.

LunisolarCalendar LunisolarCalendar LunisolarCalendar LunisolarCalendar 3

음양력 기반의 달력입니다.A lunisolar-based calendar.

SolarCalendar SolarCalendar SolarCalendar SolarCalendar 1

양력 기반의 달력입니다.A solar-based calendar.

Unknown Unknown Unknown Unknown 0

기본 역법을 알 수 없는 달력입니다.An unknown calendar basis.

예제

다음 코드 예제는 AlgorithmType 속성 및 CalendarAlgorithmType 열거형입니다.The following code example demonstrates the AlgorithmType property and the CalendarAlgorithmType enumeration.

using namespace System;
using namespace System::Globalization;

namespace CalendarTypeExample
{
    static void Display(Calendar^ genericCalendar)
    {
        String^ calendarName = 
            genericCalendar->ToString()->PadRight(50, '.');
		Console::WriteLine("{0} {1}", calendarName, genericCalendar->GetType());
    }
}

int main() 
{
    GregorianCalendar^ gregorianCalendar = gcnew GregorianCalendar();
    HijriCalendar^ hijriCalendar = gcnew HijriCalendar();
    JapaneseLunisolarCalendar^ japaneseCalendar = 
        gcnew JapaneseLunisolarCalendar();
    CalendarTypeExample::Display(gregorianCalendar);
    CalendarTypeExample::Display(hijriCalendar);
    CalendarTypeExample::Display(japaneseCalendar);
    return 0;
}

/* This code example produces the following output.

System.Globalization.GregorianCalendar............ System.Globalization.GregorianCalendar
System.Globalization.HijriCalendar................ System.Globalization.HijriCalendar
System.Globalization.JapaneseLunisolarCalendar.... System.Globalization.JapaneseLunisolarCalendar

*/
// This example demonstrates the Calendar.AlgorithmType property and
// CalendarAlgorithmType enumeration.

using System;
using System.Globalization;

class Sample 
{
    public static void Main() 
    {
    GregorianCalendar grCal = new GregorianCalendar();
    HijriCalendar     hiCal = new HijriCalendar();
    JapaneseLunisolarCalendar 
                      jaCal = new JapaneseLunisolarCalendar();
    Display(grCal);
    Display(hiCal);
    Display(jaCal);
    }

    static void Display(Calendar c)
    {
    string name = c.ToString().PadRight(50, '.');
    Console.WriteLine("{0} {1}", name, c.AlgorithmType);
    }
}
/*
This code example produces the following results:

System.Globalization.GregorianCalendar............ SolarCalendar
System.Globalization.HijriCalendar................ LunarCalendar
System.Globalization.JapaneseLunisolarCalendar.... LunisolarCalendar

*/
' This example demonstrates the Calendar.AlgorithmType property and
' CalendarAlgorithmType enumeration.
Imports System
Imports System.Globalization

Class Sample
   Public Shared Sub Main()
      Dim grCal As New GregorianCalendar()
      Dim hiCal As New HijriCalendar()
      Dim jaCal As New JapaneseLunisolarCalendar()
      Display(grCal)
      Display(hiCal)
      Display(jaCal)
   End Sub 'Main
   
   Shared Sub Display(c As Calendar)
      Dim name As String = c.ToString().PadRight(50, "."c)
      Console.WriteLine("{0} {1}", name, c.AlgorithmType)
   End Sub 'Display
End Class 'Sample
'
'This code example produces the following results:
'
'System.Globalization.GregorianCalendar............ SolarCalendar
'System.Globalization.HijriCalendar................ LunarCalendar
'System.Globalization.JapaneseLunisolarCalendar.... LunisolarCalendar
'

설명

특정 달력의 날짜 계산은 양력 기반의 기반 음력 인지 또는 음 양력 기반의 달력 인지에 따라 달라 집니다.A date calculation for a particular calendar depends on whether the calendar is solar-based, lunar-based, or lunisolar-based. 예를 들어를 GregorianCalendar, JapaneseCalendar, 및 JulianCalendar 클래스는 양력를 기반으로 합니다 HijriCalendarUmAlQuraCalendar 음력를 기반으로 클래스는 및을 HebrewCalendarJapaneseLunisolarCalendar 클래스 태음 태양력을 기반으로 하므로 양력를 사용 하는 연도 및 월 및 일 음력 계산에 대 한 계산 합니다.For example, the GregorianCalendar, JapaneseCalendar, and JulianCalendar classes are solar-based, the HijriCalendar and UmAlQuraCalendar classes are lunar-based,.and the HebrewCalendar and JapaneseLunisolarCalendar classes are lunisolar-based, thus using solar calculations for the year and lunar calculations for the month and day.

A CalendarAlgorithmType 같은 달력 멤버에서 반환 되는 값을 Calendar.AlgorithmType 속성을 특정 달력에 대 한 기초를 지정 합니다.A CalendarAlgorithmType value, which is returned by a calendar member such as the Calendar.AlgorithmType property, specifies the foundation for a particular calendar.

적용 대상