ArcGIS Explorer Component Help |
KmlLayer..::.Connect Method |
KmlLayer Class See Also |
Connects the KmlLayer to an underlying data source.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public override bool Connect() |
Visual Basic (Declaration) |
---|
Public Overrides Function Connect As Boolean |
Return Value
trueTruetruetrue (True in Visual Basic) if the KmlLayer was connected successfully; otherwise falseFalsefalsefalse (False in Visual Basic)Remarks
In order for the data to be displayed on a map, the Layer must be in a connected state. Use the Connect() method to establish a connection to this layers underlying data source.
If the connection properties specified are incorrect, the Layer will remain disconnected but no exception will be thrown; use the Layer.ConnectionStatus property to diagnose why the Layer could not be connected.