Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.