共用方式為


CalendarDataSet.CalendarExceptionsDataTable.AddCalendarExceptionsRow 方法

CalendarExceptionsRow會將物件新增至CalendarExceptionsDataTable。

命名空間:  WebSvcCalendar
組件:  ProjectServerServices (在 ProjectServerServices.dll 中)

語法

'宣告
Public Sub AddCalendarExceptionsRow ( _
    row As CalendarDataSet.CalendarExceptionsRow _
)
'用途
Dim instance As CalendarDataSet.CalendarExceptionsDataTable
Dim row As CalendarDataSet.CalendarExceptionsRow

instance.AddCalendarExceptionsRow(row)
public void AddCalendarExceptionsRow(
    CalendarDataSet.CalendarExceptionsRow row
)

參數

備註

AddCalendarExceptionsRow方法簽章被超載,如下所示:

  • 協力廠商開發人員應該使用單一CalendarDataSet.CalendarExceptionsRow參數的多載。例如, AddCalendarExceptionsRow(CalendarDataSet.CalendarExceptionsRow row)。

  • 在 Microsoft Visual Studio 的 [物件總管] 顯示另一個多載,它會使用個別的參數CalendarExceptionsRow中的所有欄位。多載是在內部使用。

    public CalendarExceptionsRow AddCalendarExceptionsRow(
        CalendarsRow parentCalendarsRowByCalendarCalendarExceptions, 
        string Name, 
        System.DateTime Start, 
        System.DateTime Finish, 
        int Shift1Start, 
        int Shift1Finish, 
        int Shift2Start, 
        int Shift2Finish, 
        int Shift3Start, 
        int Shift3Finish, 
        int Shift4Start, 
        int Shift4Finish, 
        int Shift5Start, 
        int Shift5Finish, 
        int RecurrenceType, 
        int RecurrenceFrequency, 
        int RecurrenceDays, 
        int RecurrenceMonthDay, 
        int RecurrenceMonth, 
        int RecurrencePosition) 
    

請參閱

參照

CalendarDataSet.CalendarExceptionsDataTable 類別

CalendarDataSet.CalendarExceptionsDataTable 成員

WebSvcCalendar 命名空間