Application.OptionsSecurityEx Method (Project)

Sets legacy security options that are available in the Trust Center dialog box.

Syntax

expression. OptionsSecurityEx( _RemoveFileProperties_, _TrustWSS_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data Type Description
RemoveFileProperties Optional Boolean 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.
TrustWSS Optional Boolean 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.
LegacyFileFormats Optional Integer 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

Boolean

Remarks

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.

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 returns True if the user clicks OK in the Options dialog box, or False if the user chooses Cancel.