Share via


ListObject.UpdateChanges 方法

使用工作表中 ListObject 控制項的變更,更新 Microsoft Windows SharePoint Services 網站上的清單。

命名空間:  Microsoft.Office.Tools.Excel
組件:  Microsoft.Office.Tools.Excel (在 Microsoft.Office.Tools.Excel.dll 中)

語法

'宣告
Sub UpdateChanges ( _
    iConflictType As XlListConflict _
)
void UpdateChanges(
    XlListConflict iConflictType
)

參數

備註

這個方法只適用於連結至 SharePoint 網站的清單。 如果 SharePoint 網站無法使用,則會擲回例外狀況。

範例

下列程式碼範例會使用 UpdateChanges 方法,將現有的 ListObject 中所做的變更,傳送至執行 Microsoft Windows SharePoint Services 的網站。 這個範例會假設工作表包含名稱為 List1,且已經發行至執行 Microsoft Windows SharePoint Services 之網站的 ListObject

這是示範文件層級自訂的範例。

    Private Sub ListObject_UpdateChanges()
        Me.customerListObject.UpdateChanges( _
            Excel.XlListConflict.xlListConflictDialog)
    End Sub

private void ListObject_UpdateChanges()
{
    this.customerListObject.UpdateChanges(
        Excel.XlListConflict.xlListConflictDialog);
}

.NET Framework 安全性

請參閱

參考

ListObject 介面

Microsoft.Office.Tools.Excel 命名空間