ArcObjects Library Reference  (Carto)    

IDataLayer2.Connect Method

Connects the layer to its data source. An optional name object can be specified to aid in repairing a lost connection.

[Visual Basic 6.0]
Function Connect(
    ByVal pOptRepairName As IName _
) As Boolean
[Visual Basic .NET]
Public Function Connect ( _
    ByVal pOptRepairName As IName _
) As Boolean
public bool Connect (
    IName pOptRepairName
public Boolean connect (
    IName pOptRepairName
HRESULT Connect(
  IName* pOptRepairName,
  VARIANT_BOOL* succeeded


pOptRepairName [in]

  pOptRepairName is a parameter of type IName

succeeded [out, retval]

  succeeded is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IDataLayer2 Interface