PowerTools PlusPak for Windows Forms 8.0J
AddYears メソッド

DateTimeExのインスタンスに加算する年
年を加算します。
構文
Public Function AddYears( _
   ByVal value As Integer _
) As DateTimeEx
public DateTimeEx AddYears( 
   int value
)

パラメータ

value
DateTimeExのインスタンスに加算する年

戻り値の型

加算後の新しいDateTimeExインスタンス
解説
このメソッドは、この DateTimeEx の値を変更しません。その代わりに、この計算の結果を値として持つ新しい DateTimeEx を返します。
プラットフォーム

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

参照

DateTimeEx クラス
DateTimeEx メンバ

Send Feedback