共用方式為


AddMonths Method

[This content is no longer valid. For the latest information on "M", "Quadrant", SQL Server Modeling Services, and the Repository, see the Model Citizen blog.]

Namespace:  System
Assembly:  System.Dataflow (in System.Dataflow.dll)

Syntax

'Declaration
PublicFunctionAddMonths ( _
    monthsAsInteger _
) AsDateTime
'Usage
DiminstanceAsDateDimmonthsAsIntegerDimreturnValueAsDateTimereturnValue = instance.AddMonths(months)
publicDateTimeAddMonths(
    intmonths
)
public:
DateTimeAddMonths(
    intmonths
)
publicfunctionAddMonths(
    months : int
) : DateTime

Parameters

Return Value

Type: System. . :: . .DateTime

.NET Framework Security

See Also

Reference

Date Structure

Date Members

System Namespace