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

定义

DateObject 的年份值设置为指定的年份值。Sets the year value of a DateObject to the specified year value.

此 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

此方法所作用于的对象。The object that this method is acting upon.

dyear
Double

要为 thisob 设置的年份值。The year value to set for thisob.

month
Object

要为 thisob 设置的月份值。The month value to set for thisob.

date
Object

要为 thisob 设置的日期值。The date value to set for thisob.

返回

Double

thisob 设置的年份值。The year value that is set for thisob.

属性

适用于

另请参阅