Table of contents
TOC
折叠目录
展开目录

Application.OpenFromSharePoint 方法 (项目)Application.OpenFromSharePoint Method (Project)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

在 SharePoint 2013 的任务列表中,打开一个项目。Opens a project from a task list in SharePoint 2013.

语法Syntax

表达式OpenFromSharePoint(* * SiteURL,* * ListName ** )expression. **OpenFromSharePoint( ** SiteURL, ** ListName )

表达式_返回应用程序对象的表达式。_expression An expression that returns an Application object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
SiteURLSiteURL可选OptionalStringString指定 SharePoint 网站的 URL。Specifies the URL of the SharePoint site.
ListNameListName可选OptionalStringString指定任务列表的名称。Specifies the name of the task list.

返回值Return Value

BooleanBoolean

注解Remarks

请注意 项目未必须连接到 Project Server 实例。与 SharePoint 任务列表同步,专为没有到 Project Server 的访问权限的用户。Note Project must not be connected to a Project Server instance. Synchronization with SharePoint task lists is designed for users who do not have access to Project Server.

示例Example

下面的示例从位于 Simple 项目工作环境中的名为 TestTasks 的任务列表打开项目。The following example opens a project from a task list named TestTasks that is in the Simple project workspace.

Sub OpenSharePointTaskList() 
    OpenFromSharePoint siteurl:="http://ServerName/PWA/Simple", ListName:="TestTasks" 
End Sub
© 2018 Microsoft