Connects the PackageLayer to the data held within an ArcGIS Desktop layer file or a layer package file.

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

Syntax

C#
public override bool Connect()
Visual Basic (Declaration)
Public Overrides Function Connect As Boolean

Return Value

trueTruetruetrue (True in Visual Basic) if the PackageLayer was connected successfully; otherwise falseFalsefalsefalse (False in Visual Basic).

Remarks

In order for PackageLayer data to be displayed on a map, the layer must be in a connected state. Use this method to establish a connection to the PackageLayer data source.

For more information, see the remarks section of the Connect method on the Layer abstract class.

See Also

Relate Topics:
  CreateFromXmlString Method
  Disconnect Method
  MoveTo Method
  Open Method
  OpenLayerFile Method
Created by Atop CHM to web converter,© 2009 all right reserved.