Share via


FileCodeModel2.ElementFromID Method

Used to receive specific CodeElement.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
Function ElementFromID ( _
    ID As String _
) As CodeElement
CodeElement ElementFromID(
    string ID
)
CodeElement^ ElementFromID(
    String^ ID
)
abstract ElementFromID : 
        ID:string -> CodeElement 
function ElementFromID(
    ID : String
) : CodeElement

Parameters

  • ID
    Type: System.String
    The string used to identify the element.

Return Value

Type: EnvDTE.CodeElement
A CodeElement object.

Remarks

If the requested element no longer exists, the method returns E_FAIL.

.NET Framework Security

See Also

Reference

FileCodeModel2 Interface

EnvDTE80 Namespace