DatePrototype.setYear(Object, Double) 方法
定义
将 DateObject 的年份值设置为指定的年份值。Sets the year value of a DateObject to the specified year value.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
static double setYear(System::Object ^ thisob, double dyear);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setYear)]
[Microsoft.JScript.NotRecommended("setYear")]
public static double setYear (object thisob, double dyear);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.Date_setYear)>]
[<Microsoft.JScript.NotRecommended("setYear")>]
static member setYear : obj * double -> double
Public Shared Function setYear (thisob As Object, dyear As Double) As Double
参数
- thisob
- Object
此方法所作用于的对象。The object that this method is acting upon.
- dyear
- Double
要为 thisob 设置的年份值。The year value to set for thisob.
返回
设置该值后 thisob 的新值。The new value of thisob after the value is set.
- 属性