DateTime.Millisecond-Eigenschaft
Ruft die Komponente für die Millisekunden des Datums ab, das durch diese Instanz dargestellt wird.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public ReadOnly Property Millisecond As Integer
'Usage
Dim instance As DateTime
Dim value As Integer
value = instance.Millisecond
public int Millisecond { get; }
public:
property int Millisecond {
int get ();
}
/** @property */
public int get_Millisecond ()
public function get Millisecond () : int
Eigenschaftenwert
Die Millisekundenkomponente als Wert zwischen 0 und 999.
Beispiel
Im folgenden Codebeispiel wird die Millisecond-Eigenschaft veranschaulicht.
Dim moment As New System.DateTime(1999, 1, 13, 3, 57, 32, 11)
' Year gets 1999.
Dim year As Integer = moment.Year
' Month gets 1 (January).
Dim month As Integer = moment.Month
' Day gets 13.
Dim day As Integer = moment.Day
' Hour gets 3.
Dim hour As Integer = moment.Hour
' Minute gets 57.
Dim minute As Integer = moment.Minute
' Second gets 32.
Dim second As Integer = moment.Second
' Millisecond gets 11.
Dim millisecond As Integer = moment.Millisecond
System.DateTime moment = new System.DateTime(
1999, 1, 13, 3, 57, 32, 11);
// Year gets 1999.
int year = moment.Year;
// Month gets 1 (January).
int month = moment.Month;
// Day gets 13.
int day = moment.Day;
// Hour gets 3.
int hour = moment.Hour;
// Minute gets 57.
int minute = moment.Minute;
// Second gets 32.
int second = moment.Second;
// Millisecond gets 11.
int millisecond = moment.Millisecond;
System::DateTime moment = System::DateTime(
1999, 1, 13, 3, 57, 32, 11 );
// Year gets 1999.
int year = moment.Year;
// Month gets 1 (January).
int month = moment.Month;
// Day gets 13.
int day = moment.Day;
// Hour gets 3.
int hour = moment.Hour;
// Minute gets 57.
int minute = moment.Minute;
// Second gets 32.
int second = moment.Second;
// Millisecond gets 11.
int millisecond = moment.Millisecond;
System.DateTime moment = new System.DateTime(1999, 1, 13,
3, 57, 32, 11);
// Year gets 1999.
int year = moment.get_Year();
// Month gets 1 (January).
int month = moment.get_Month();
// Day gets 13.
int day = moment.get_Day();
// Hour gets 3.
int hour = moment.get_Hour();
// Minute gets 57.
int minute = moment.get_Minute();
// Second gets 32.
int second = moment.get_Second();
// Millisecond gets 11.
int millisecond = moment.get_Millisecond();
Plattformen
Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.
Versionsinformationen
.NET Framework
Unterstützt in: 2.0, 1.1, 1.0
.NET Compact Framework
Unterstützt in: 2.0, 1.0