Proprietà Calendar.AlgorithmType
.NET Framework 3.5
Aggiornamento: novembre 2007
Ottiene un valore che indica se il calendario corrente è solare, lunare o una combinazione di entrambi (lunisolare).
Assembly: mscorlib (in mscorlib.dll)
/** @property */ /** @attribute ComVisibleAttribute(false) */ public CalendarAlgorithmType get_AlgorithmType()
public function get AlgorithmType () : CalendarAlgorithmType
Valore proprietà
Tipo: System.Globalization.CalendarAlgorithmTypeUno dei valori di CalendarAlgorithmType.
Nell'esempio di codice riportato di seguito vengono illustrate la proprietà AlgorithmType e l'enumerazione CalendarAlgorithmType.
// 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 */
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition , Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
.NET Framework e .NET Compact Framework non supportano tutte le versioni di ciascuna piattaforma. Per un elenco delle versioni supportate, vedere Requisiti di sistema di .NET Framework.