This document is archived and information here might be outdated.  Recommended version.


IWorkspaceReplicasAdmin2.RegisterReplicaDataset Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IWorkspaceReplicasAdmin2.RegisterReplicaDataset Method

Register replica dataset info with the replica.

[Visual Basic .NET]
Public Sub RegisterReplicaDataset ( _
    ByVal RDataset As IReplicaDataset, _
    ByVal filter As esriRowsType, _
    ByVal UseGeometry As Boolean, _
    ByVal QueryDef As String, _
    ByVal pSelID As IFIDSet, _
    ByVal pToReplica As IReplica _
)
[C#]
public void RegisterReplicaDataset (
    IReplicaDataset RDataset,
    esriRowsType filter,
    bool UseGeometry,
    string QueryDef,
    IFIDSet pSelID,
    IReplica pToReplica
);
[C++]
HRESULT RegisterReplicaDataset(
  IReplicaDataset* RDataset,
  esriRowsType filter,
  VARIANT_BOOL UseGeometry,
  BSTR QueryDef,
  IFIDSet* pSelID,
  IReplica* pToReplica
);
[C++]

Parameters RDataset [in]
RDataset is a parameter of type IReplicaDataset filter [in]
filter is a parameter of type esriRowsType UseGeometry [in] UseGeometry is a parameter of type VARIANT_BOOL QueryDef [in] QueryDef is a parameter of type BSTR pSelID [in]
pSelID is a parameter of type IFIDSet pToReplica [in]
pToReplica is a parameter of type IReplica

Product Availability

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

Remarks

Feature classes and tables can be registered using this method. Other datasets may or may not be supported - use the CanRegisterReplicaDataset method to determine whether they can be registered.

See Also

IWorkspaceReplicasAdmin2 Interface

.NET Related Topics

How to add a feature class or table to an existing replica