Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

ProjectItem.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); 
}

Community Additions

ADD
Show:
© 2015 Microsoft