VCCodeModel.CodeTypeFromFullName Method (String)

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
'Usage
Dim instance As VCCodeModel 
Dim Name As String 
Dim returnValue As CodeType 

returnValue = instance.CodeTypeFromFullName(Name)
CodeType CodeTypeFromFullName(
    string Name
)
CodeType^ CodeTypeFromFullName(
    String^ Name
)
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.

Implements

CodeModel2.CodeTypeFromFullName(String)

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 vsCMElementOther and a InfoLocation property of vsCMInfoLocationNone.

.NET Framework Security

See Also

Reference

VCCodeModel Interface

VCCodeModel Members

CodeTypeFromFullName Overload

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

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