This sample tool provides the user with a command-line interface to provide information about types in the environment. Locating a specific type can be difficult. This tool provides a simple way o determine what types are available, what module they are in and what interfaces, methods, fields, properties and events are available on the type.
This sample demonstrates the use of the following classes:
typefinder -d:directory [MatchOptions] [ShowOptions] [MiscOptions] typename
Where typename is the name of the type to search for.
| Option | Description | |
|---|---|---|
| -d:directory | Specifies additional directory to search. | |
| MatchOptions | -n | Specifies namespace name. |
| -w | Matches the name anywhere in the namespace. | |
| -x | Specifies exact type name (including namespace). | |
| ShowOptions | -a | Shows all information. |
| -e | Shows events. | |
| -f | Shows fields. | |
| -i | Shows interfaces. | |
| -l | Shows module information. | |
| -m | Shows methods. | |
| -p | Shows properties. | |
| MiscOptions | -? | Prints usage information. |
| -r | Displays base type information for every type. | |
| -v | Specifies verbose mode. | |
The sample source is found in sscli\samples\utilities\typefinder.
The source file is:
The build output location is %TARGETCOMPLUS%\samples\utilities\typefinder. The output file is an executable assembly named typefinder.exe.
All samples are built from the buildall script.
You can also build all the
samples by switching to the root of the sample directory, sscli\samples, and typing
build -c.
You can build this specific sample by switching to the sample directory and typing
build -c.
These steps require that the Shared Source CLI (SSCLI) be already built and functional.
clix typefinder.exe
Copyright (c) 2002 Microsoft Corporation. All rights reserved.