IGxLayer is only available in ArcGIS Desktop. In the developer help, the topic for each interface and class has a Product Availability near the top of the page that lets you know what products are supported.
You can use ILayerFile to work with layer files in any of the products.