| MvComponentNewInCollector Method (RpObjModel, RpObject, Int32, Boolean) |
Lets you create a new representation object associated with a collector attribute.
On the server side, this new representation object will be associated with a
new Server object, which itself will be included in the relation specified by the
collector.
The method calls the constructor for the objModel type and calls
the function OnAddToCollection(RpObject, Int32) with
collectorOwner and collectorId as parameters
on the new object.
Then, if the endUpdate is true, the method
EndC2SUpdate is invoked.
Namespace:
RW.Server.Component
Assembly:
RW.Server.Component (in RW.Server.Component.dll) Version: 6.5.0.0 (6.5.0.0)
Syntax public RpObject NewInCollector(
RpObjModel objModel,
RpObject collectorOwner,
int collectorId,
bool endUpdate
)
Public Function NewInCollector (
objModel As RpObjModel,
collectorOwner As RpObject,
collectorId As Integer,
endUpdate As Boolean
) As RpObject
public:
RpObject^ NewInCollector(
RpObjModel^ objModel,
RpObject^ collectorOwner,
int collectorId,
bool endUpdate
)
Parameters
- objModel
- Type: RW.Server.ComponentRpObjModel
Object model of the object to create. - collectorOwner
- Type: RW.Server.ComponentRpObject
The representation object that owns the collector. - collectorId
- Type: SystemInt32
The identifier of the collector attribute. - endUpdate
- Type: SystemBoolean
Controls the calls to the function EndC2SUpdate.
Return Value
Type:
RpObjectThe new representation object or
Field Value
Type:
RpObjectnull if the function
OnAddToCollection(RpObject, Int32) fails.
See Also