ChangeSet.Replace<TEntity> Method
[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]
Replaces the specified client entity with the specified server entity in all ChangeSetEntry objects that are contained in the ChangeSet.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Sub Replace(Of TEntity As Class) ( _
clientEntity As TEntity, _
returnedEntity As TEntity _
)
'Usage
Dim instance As ChangeSet
Dim clientEntity As TEntity
Dim returnedEntity As TEntity
instance.Replace(clientEntity, returnedEntity)
public void Replace<TEntity>(
TEntity clientEntity,
TEntity returnedEntity
)
where TEntity : class
public:
generic<typename TEntity>
where TEntity : ref class
void Replace(
TEntity clientEntity,
TEntity returnedEntity
)
member Replace :
clientEntity:'TEntity *
returnedEntity:'TEntity -> unit when 'TEntity : not struct
JScript does not support generic types and methods.
Type Parameters
- TEntity
The entity type.
Parameters
- clientEntity
Type: TEntity
The client modified entity.
- returnedEntity
Type: TEntity
The server modified entity that replaces clientEntity.
Exceptions
Exception | Condition |
---|---|
[ArgumentNullException] | clientEntity or returnedEntity is nulla null reference (Nothing in Visual Basic). |