Gets the ID of the application in the current context, or null (Nothing in Visual Basic) if not applicable.