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: System.StringRequired. 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.