Share via


VCCodeModel.CodeElementFromFullName2 Method

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)

Syntax

'Declaration
Function CodeElementFromFullName2 ( _
    Name As String _
) As CodeElements
CodeElements CodeElementFromFullName2(
    string Name
)
CodeElements^ CodeElementFromFullName2(
    [InAttribute] String^ Name
)
abstract CodeElementFromFullName2 : 
        Name:string -> CodeElements
function CodeElementFromFullName2(
    Name : String
) : CodeElements

Parameters

  • Name
    Type: String

    Required. The full name of the elements to retrieve.

Return Value

Type: EnvDTE.CodeElements
A CodeElements collection.

Examples

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}.

.NET Framework Security

See Also

Reference

VCCodeModel Interface

Microsoft.VisualStudio.VCCodeModel Namespace