Dela via


IsInvalidDocumentTask.Execute Method (2007 System)

Determines whether a Microsoft Office 2003 document should be updated.

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
'Usage
Dim instance As IsInvalidDocumentTask 
Dim returnValue As Boolean 

returnValue = instance.Execute()
public override bool Execute()
public:
virtual bool Execute() override
public override function Execute() : boolean

Return Value

Type: System.Boolean
true if a customized document requires an update; otherwise, false. The default is false.

Implements

ITask.Execute()

Exceptions

Exception Condition
ArgumentException

The SourceDocument or DocumentCustomization is nulla null reference (Nothing in Visual Basic).

Remarks

This build task determines whether a customized document requires an update by testing if the source document or customization assembly has been changed since the customized document was first generated.

.NET Framework Security

See Also

Reference

IsInvalidDocumentTask Class

IsInvalidDocumentTask Members

Microsoft.VisualStudio.Tools.Office.BuildTasks Namespace