DateTimeFormat DateTimeFormat DateTimeFormat DateTimeFormat Class

定義

指定日期時間格式選項。Specifies date-time format options.

public ref class DateTimeFormat
public class DateTimeFormat
type DateTimeFormat = class
Public Class DateTimeFormat
繼承
DateTimeFormatDateTimeFormatDateTimeFormatDateTimeFormat

建構函式

DateTimeFormat(String) DateTimeFormat(String) DateTimeFormat(String) DateTimeFormat(String)

使用格式字串初始化 DateTimeFormat 類別的新執行個體。Initializes a new instance of the DateTimeFormat class using the format string.

DateTimeFormat(String, IFormatProvider) DateTimeFormat(String, IFormatProvider) DateTimeFormat(String, IFormatProvider) DateTimeFormat(String, IFormatProvider)

使用格式字串和格式提供者,初始化 DateTimeFormat 類別的新執行個體。Initializes a new instance of the DateTimeFormat class using the format string and format provider.

屬性

DateTimeStyles DateTimeStyles DateTimeStyles DateTimeStyles

取得或設定格式化選項,這些選項會自訂一些日期和時間剖析方法的字串剖析。Gets or sets the formatting options that customize string parsing for some date and time parsing methods.

FormatProvider FormatProvider FormatProvider FormatProvider

取得控制格式設定的物件。Gets an object that controls formatting.

FormatString FormatString FormatString FormatString

取得當日期或時間表示為字串時,用來控制所產生格式的格式字串。Gets the format strings to control the formatting produced when a date or time is represented as a string.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

適用於