VCCodeModel.CodeElementFromFullName2 Method (String)


Gets a collection of the specified code elements for the object. It is identical to CodeElementFromFullName, except that it ignores namespaces during lookup.

Namespace:   Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

CodeElements CodeElementFromFullName2(
	string Name


Type: System.String

Required. The full name of the elements to retrieve.

Return Value

Type: EnvDTE.CodeElements

A CodeElements collection.

Given the following code:

[Visual C++]
class X {};
namespace NS1 {
    class X {};
    namespace NS2 {
        class X {};

a call to VCCodeModel.CodeElementFromFullName2("X") yields {X; NS1::X; NS1::NS2::X}.

Return to top