DomainClient.BeginSubmit 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.]

Submits the specified EntityChangeSet to the DomainService asynchronously.

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)

Syntax

'Declaration
Public Function BeginSubmit ( _
    changeSet As EntityChangeSet, _
    callback As AsyncCallback, _
    userState As Object _
) As IAsyncResult
'Usage
Dim instance As DomainClient
Dim changeSet As EntityChangeSet
Dim callback As AsyncCallback
Dim userState As Object
Dim returnValue As IAsyncResult

returnValue = instance.BeginSubmit(changeSet, _
    callback, userState)
public IAsyncResult BeginSubmit(
    EntityChangeSet changeSet,
    AsyncCallback callback,
    Object userState
)
public:
IAsyncResult^ BeginSubmit(
    EntityChangeSet^ changeSet, 
    AsyncCallback^ callback, 
    Object^ userState
)
member BeginSubmit : 
        changeSet:EntityChangeSet * 
        callback:AsyncCallback * 
        userState:Object -> IAsyncResult 
public function BeginSubmit(
    changeSet : EntityChangeSet, 
    callback : AsyncCallback, 
    userState : Object
) : IAsyncResult

Parameters

  • userState
    Type: System.Object
    Optional user state associated with this operation.

Return Value

Type: System.IAsyncResult
An asynchronous result that identifies this submit request.

Exceptions

Exception Condition
[ArgumentNullException]

changeSet or callback is nulla null reference (Nothing in Visual Basic).

[InvalidOperationException]

changeSet is empty.

See Also

Reference

DomainClient Class

System.ServiceModel.DomainServices.Client Namespace