DatePrototype.setYear(Object, Double) Yöntem

Tanım

bir DateObject öğesinin yıl değerini 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 işlem yaptığı nesne.

dyear
Double

için thisobayarlanacağı yıl değeri.

Döndürülenler

Değeri thisob ayarlandıktan sonra değerinin yeni değeri.

Öznitelikler

Şunlara uygulanır

Ayrıca bkz.