返回的日期,则指定的从指定日期的月数。
命名空间: Microsoft.SharePoint.Utilities
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public Function AddMonths ( _
cDate As SimpleDate, _
nMonths As Integer _
) As SimpleDate
用法
Dim instance As DateOptions
Dim cDate As SimpleDate
Dim nMonths As Integer
Dim returnValue As SimpleDate
returnValue = instance.AddMonths(cDate, _
nMonths)
public SimpleDate AddMonths(
SimpleDate cDate,
int nMonths
)
参数
cDate
类型:Microsoft.SharePoint.Utilities.SimpleDate要向其中添加月SimpleDate 。
nMonths
类型:System.Int32要添加的月数。
返回值
类型:Microsoft.SharePoint.Utilities.SimpleDate
一个SimpleDate值,该值代表指定的SimpleDate值添加指定的月数的日期。