DatePrototype.setYear(Object, Double) Yöntem

Tanım

A 'nın yıl değerini DateObject belirtilen yıl değerine ayarlar.

Bu API, ürün altyapısını destekler ve doğrudan kodunuzdan kullanıma yönelik değildir.

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

Parametreler

thisob
Object

Bu yöntemin üzerinde hareket ettığdığı nesne.

dyear
Double

İçin ayarlanacak yıl değeri thisob .

Döndürülenler

Double

thisobDeğer ayarlandıktan sonra yeni değeri.

Öznitelikler

Şunlara uygulanır

Ayrıca bkz.