共用方式為


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

'宣告
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.

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

.NET Framework Security

See Also

Reference

VCCodeModel Interface

CodeTypeFromFullName Overload

Microsoft.VisualStudio.VCCodeModel Namespace

Other Resources

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