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 的 ListObject,该对象已经发布到运行 Microsoft Windows SharePoint Services 的网站。

此示例针对的是文档级自定义项。

    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 命名空间