ListObject.Publish(Object, Boolean) 方法

定义

ListObject 对象发布到运行 Microsoft Windows SharePoint Services 的服务器。

public:
 System::String ^ Publish(System::Object ^ Target, bool LinkSource);
public string Publish (object Target, bool LinkSource);
Public Function Publish (Target As Object, LinkSource As Boolean) As String

参数

Target
Object

必需的 对象。 包含字符串数组。 下表描述了此数组的元素:Element#Contents0URL of SharePoint server1ListName (显示名称) 列表的 2Description。 可选。

LinkSource
Boolean

必需 布尔值

返回

注解

此属性返回一个 String ,它是 SharePoint 网站上已发布列表的 URL。

如果对象 ListObject 当前未链接到 SharePoint 网站上的列表,则设置为 LinkSourceTrue 将在指定的 SharePoint 网站上创建新列表。 如果 ListObject 对象当前已链接到 SharePoint 网站,将参数设置为 LinkSourceTrue 将替换现有链接, (只能将列表链接到一个 SharePoint 网站) 。 如果 ListObject 对象当前未链接,则设置为 LinkSourceFalse 将使 ListObject 对象保持未链接状态。 如果 ListObject 对象当前已链接到 SharePoint 网站,则设置为 LinkSourceFalse 将使 ListObject 对象链接到当前 SharePoint 网站。

适用于