Find Usages (Advanced)

When thinking of usages of namespaces, types, or methods, you may also (or only) be interested in finding usages of related objects (such as derived types, for example). Find Usages (Advanced) provides exactly this kind of functionality.

To find usages in advanced mode:

  1. Select the symbol you want to search for in Class View or Object Browser, or position the caret at the symbol in the editor, and press Shift + Alt + F7 . (Alternatively, right-click on the symbol you want to search for in Class View, Object Browser, or in the editor, and select Find Usages (Advanced) from the popup menu.)
  2. The following dialog is presented for selecting the search scope and options (its appearance varies slightly depending on the type of the symbol you are searching for):

    Note    In some situations (for example, when you are searching for usages of fields or local variables) no additional options may be specified. In this case, the dialog window shown above does not appear. The search proceeds exactly as described in the Find Usages section.
  3. By checking/unchecking the appropriate checkboxes you can refine your search criterion to also/only find related symbols. Depending on the type of the original entity the additional possibilities are as follows.

     

    You search for usages of You can also search for

    class

    usages of its members, and/or usages of derived classes

    interface

    usages of its members, implementations of the interface, and/or declarations of extending interfaces

    struct

    usages of its members

    virtual method

    usages of overriding methods (The comment regarding the search of overriding members stated in the section Find Usages applies in this situation as well.)

    constructor

    overloaded constructors

     

  4. The scope of the search can be restricted to solution, current file, or current project. In addition to that, you can also search for entities in the libraries by checking the respective check box.
  5. Click Find . The search results appear in the Find Results window tab.

See Also

Find Usages (Basic) | Highlight Usages in File | Go to Usage | Find Results Window