This documentation is archived and is not being maintained.

Project.Kind Property

Gets a GUID string indicating the kind or type of the object.

Namespace: EnvDTE
Assembly: EnvDTE (in envdte.dll)

string Kind { get; }
/** @property */
String get_Kind ()

function get Kind () : String

Property Value

A GUID string representing the type of object.

Environment extensions must provide uniquely defined type strings. This information should be available in each tool or language's type library or documentation.

public void KindExample2(DTE2 dte)
{
    // Before running this example, open a project.

    Project proj = dte.Solution.Projects.Item(1);
    string msg = "";

    foreach (ProjectItem item in proj.ProjectItems)
        msg += "    " + item.Name + "  [Kind = " + item.Kind + "]\n";

    MessageBox.Show(proj.Name + "  [Kind = " + proj.Kind + 
        "] has the following project items:\n\n" + msg); 
}
Show: