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: StringThe 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
- 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.