Initializes a new RasterLayer object and connects the layer to a raster file.

Namespace:  ESRI.ArcGISExplorer.Mapping
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

Syntax

C#
public static RasterLayer OpenRasterFile(
	string path
)
Visual Basic (Declaration)
Public Shared Function OpenRasterFile ( _
	path As String _
) As RasterLayer

Parameters

path
Type: System..::.String
The path to an image file.

Return Value

A RasterLayer object connected to the specified image file.

Remarks

Use this method to both instantiate a RasterLayer and connect the layer to an image file. In contrast to the Connect method, an exception will be thrown if the specified path is incorrect.

See Also

Relate Topics:
  Connect Method
  CreateFromXmlString Method
  Disconnect Method
  MoveTo Method
  OpenArcSDERaster Method
  OpenFileGeodatabaseRaster Method
  OpenFromRaster Method
Created by Atop CHM to web converter,© 2009 all right reserved.