DatePrototype.setYear(Object, Double) 方法

定義

將 a 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 值。

屬性

適用於

另請參閱