CheckOffice2007Document.Execute Method

Determines whether a customized document in the 2007 Microsoft Office system should be generated.

Namespace:  Microsoft.VisualStudio.Tools.Office.BuildTasks
Assembly:  Microsoft.VisualStudio.Tools.Office.BuildTasks (in Microsoft.VisualStudio.Tools.Office.BuildTasks.dll)

Syntax

'Declaration
Public Overrides Function Execute As Boolean
public override bool Execute()

Return Value

Type: System.Boolean
true if one of the conditions is met; otherwise, false. The default is true.

Implements

ITask.Execute()

Remarks

This method returns true if one of the following conditions is met:

  • DeploymentManifest does not exist.

  • The document customization has been updated since the customized document was last created.

In addition, both of the following must be true:

  • The customization assembly exists at the path that is specified in the DocumentCustomization property.

  • The deployment manifest exists at the path that is specified in the DeploymentManifest property.

  • The source document exists at the path that is specified in the SourceDocument property.

.NET Framework Security

See Also

Reference

CheckOffice2007Document Class

Microsoft.VisualStudio.Tools.Office.BuildTasks Namespace