Compartilhar via


OperationBase.Complete Method (Object)

[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.]

Completes a successful operation with the specified result.

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

Syntax

'Declaration
Protected Sub Complete ( _
    result As Object _
)
'Usage
Dim result As Object

Me.Complete(result)
protected void Complete(
    Object result
)
protected:
void Complete(
    Object^ result
)
member Complete : 
        result:Object -> unit 
protected function Complete(
    result : Object
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

result is nulla null reference (Nothing in Visual Basic).

InvalidOperationException

The operation has already completed.

Remarks

This method invokes the completeAction delegate specified in the constructor.

The System#ComponentModel#INotifyPropertyChanged#PropertyChanged() event is raised for the following properties: IsComplete and CanCancel if CanCancel was true.

See Also

Reference

OperationBase Class

Complete Overload

System.ServiceModel.DomainServices.Client Namespace

IsComplete