Click or drag to resize
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.3.0.0 (0.8.0.0)
Syntax
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: RpObject
The new representation object or

Field Value

Type: RpObject
null if the function OnAddToCollection(RpObject, Int32) fails.
See Also