DatePrototype.setFullYear(Object, Double, Object, Object) 方法

定義

DateObject 的年份值設定為指定的年份值。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static double setFullYear(System::Object ^ thisob, double dyear, System::Object ^ month, System::Object ^ date);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setFullYear)]
public static double setFullYear (object thisob, double dyear, object month, object date);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setFullYear)>]
static member setFullYear : obj * double * obj * obj -> double
Public Shared Function setFullYear (thisob As Object, dyear As Double, month As Object, date As Object) As Double

參數

thisob
Object

這個方法執行位置的物件。

dyear
Double

針對 thisob 設定的年份值。

month
Object

針對 thisob 設定的月份值。

date
Object

針對 thisob 設定的日期值。

傳回

針對 thisob 設定的年份值。

屬性

適用於

另請參閱