Partager via


VCCodeModel.CodeElementFromFullName2(String) Method

Definition

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

public:
 EnvDTE::CodeElements ^ CodeElementFromFullName2(System::String ^ Name);
[System.Runtime.InteropServices.DispId(609)]
public EnvDTE.CodeElements CodeElementFromFullName2 (string Name);
[<System.Runtime.InteropServices.DispId(609)>]
abstract member CodeElementFromFullName2 : string -> EnvDTE.CodeElements
Public Function CodeElementFromFullName2 (Name As String) As CodeElements

Parameters

Name
String

Required. The full name of the elements to retrieve.

Returns

A CodeElements collection.

Attributes

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

Applies to