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

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

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

设置在信任中心对话框中可用的旧安全选项。Sets legacy security options that are available in the Trust Center dialog box.

语法Syntax

表达式OptionsSecurityEx(* * RemoveFileProperties,* * TrustWSS ** )expression. **OptionsSecurityEx( ** RemoveFileProperties, ** TrustWSS )

表达式_一个表示应用程序对象的变量。_expression A variable that represents an Application object.

参数Parameters

名称Name必需/可选Required/Optional数据类型Data Type说明Description
RemoveFilePropertiesRemoveFileProperties可选OptionalBooleanBoolean如此如果项目从保存在文件属性中删除个人信息。默认值为False。对应于信任中心对话框中的文档特定设置部分隐私选项选项卡上。True if Project removes personal information from file properties upon saving. The default value is False. Corresponds to the Document-specific settings section on the Privacy Options tab of the Trust Center dialog box.
TrustWSSTrustWSS可选OptionalBooleanBoolean如此如果 Project Server 和项目工作环境网站不需要添加到 Internet Explorer 受信任的站点列表。如果 SharePoint 项目服务器和项目工作环境网站已受信任。对应于信任中心对话框中的Project Server选项卡上的设置。True if Project Server and project workspace sites need not be added to the Internet Explorer Trusted Sites list. False if the SharePoint sites for Project Server and project workspaces are already trusted. Corresponds to the setting on the Project Server tab of the Trust Center dialog box.
LegacyFileFormatsLegacyFileFormats可选OptionalIntegerInteger设置用于打开或使用旧版或非默认文件格式保存文件的选项。有效的值为 0?2。对应于信任中心对话框中的旧式格式选项卡上的设置。可以在PjLegacyFileFormats枚举的常量之一。Sets the option for opening or saving files with legacy or non-default file formats. Valid values are 0?2. Corresponds to the setting on the Legacy Formats tab of the Trust Center dialog box. Can be one of the constants in the PjLegacyFileFormats enumeration.

返回值Return Value

BooleanBoolean

注解Remarks

OptionsSecurityEx方法处理传统设置 Microsoft Project 的早期版本中创建的文件。若要在 Project 中打开特定选项卡的信任中心对话框中,使用OptionsSecurityTab方法。The OptionsSecurityEx method deals with legacy settings for files created in an earlier version of Microsoft Project. To open a specific tab of the Trust Center dialog box in Project, use the OptionsSecurityTab method.

如果省略了某个参数,其默认值是由在信任中心对话框中的当前设置指定。使用OptionsSecurityEx方法,而不指定任何参数将显示信任中心对话框。If an argument is omitted, its default value is specified by the current setting in the Trust Center dialog box. Using the OptionsSecurityEx method without specifying any arguments displays the Trust Center dialog box.

如果用户单击选项对话框中的确定,如果用户选择取消,则OptionsSecurityEx返回TrueOptionsSecurityEx returns True if the user clicks OK in the Options dialog box, or False if the user chooses Cancel.

© 2018 Microsoft