DatePrototype.setYear(Object, Double) 方法

定義

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

此 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

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

dyear
Double

針對 thisob 設定的年份值。

傳回

設定值之後,thisob 的新值。

屬性

適用於

另請參閱