Share via


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 设置的年份值。

属性

适用于

另请参阅