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
[C#]
public bool Connect (
    IName pOptRepairName
);
[Java]
public Boolean connect (
    IName pOptRepairName
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Connect(
  IName* pOptRepairName,
  VARIANT_BOOL* succeeded
);
[C++]

Parameters

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