Udostępnij za pośrednictwem


Find2 Method Differences

In Visual Studio Macros, a number of Find2 parameters are handled differently than in Visual Studio. With Target, any reference to Find in File is not supported, while SearchPath and FilesOfType are ignored. The FindDone event also is not supported; although it is visible in the FindEvents collection, it is not fired, so using it for event handling will result in an error.

The following table lists the differences in Find2 between Visual Studio Macros and the Visual Studio extensibility model.

Operation

Behavior in Visual Studio Macros

Target

vsFindTargetFiles and vsFindTargetSolution return errors

SearchPath

Returns an error

FilesOfType

Returns an empty string

See Also

Concepts

Extensibility Model Differences

Document and Documents Object Differences

Property Differences

Item Operation Differences

Project Differences

Tools Options Differences