Share via


VCCodeModel.CodeTypeFromFullName Method

Returns a code element based on a fully qualified name.

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

Syntax

'Declaration
Function CodeTypeFromFullName ( _
    Name As String _
) As CodeType
CodeType CodeTypeFromFullName(
    string Name
)
CodeType^ CodeTypeFromFullName(
    String^ Name
)
abstract CodeTypeFromFullName : 
        Name:string -> CodeType
function CodeTypeFromFullName(
    Name : String
) : CodeType

Parameters

  • Name
    Type: System.String

    Required. A fully qualified symbol name, such as Namespace1.Namespace2.Class1.Member1.

Return Value

Type: EnvDTE.CodeType
A CodeType object.

Remarks

If the specified name is not found in the project or any of its references, CodeTypeFromFullName returns Nothing or nulla null reference (Nothing in Visual Basic), rather than returning a code element with a Kind property of EnvDTE.vsCMElement.vsCMElementOther and a InfoLocation property of EnvDTE.vsCMInfoLocation.vsCMInfoLocationNone.

.NET Framework Security

See Also

Reference

VCCodeModel Interface

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples