ArcObjects Library Reference (Carto)  

IDataSourceHelperMapDocument.Repair Method

Repairs the specified layer and attempt to repair all other broken layers with same workspace path name as the specified layer.

[Visual Basic .NET]
Public Sub Repair ( _
    ByVal pMapDocument As IMapDocument, _
    ByVal pDataLayer As IDataLayer, _
    ByVal pName As IName, _
    ByVal Validate As Boolean _
)
[C#]
public void Repair (
    IMapDocument pMapDocument,
    IDataLayer pDataLayer,
    IName pName,
    bool Validate
);
[C++]
HRESULT Repair(
  IMapDocument* pMapDocument,
  IDataLayer* pDataLayer,
  IName* pName,
  VARIANT_BOOL Validate
);
[C++]

Parameters

pMapDocument [in]

  pMapDocument is a parameter of type IMapDocument

pDataLayer [in]

  pDataLayer is a parameter of type IDataLayer

pName [in]

  pName is a parameter of type IName

Validate [in]   Validate is a parameter of type VARIANT_BOOL

Product Availability

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

See Also

IDataSourceHelperMapDocument Interface