Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
InvokeOperation Method (String, Type, IDictionary(String, Object), Boolean, Action(InvokeOperation), Object)

DomainContext.InvokeOperation Method (String, Type, IDictionary<String, Object>, Boolean, Action<InvokeOperation>, Object)

WCF RIA Services

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

Executes an invoke operation.

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

public virtual InvokeOperation InvokeOperation(
	string operationName,
	Type returnType,
	IDictionary<string, Object> parameters,
	bool hasSideEffects,
	Action<InvokeOperation> callback,
	Object userState
)

Parameters

operationName
Type: System.String
The name of the operation.
returnType
Type: System.Type
The return type of the operation.
parameters
Type: System.Collections.Generic.IDictionary<String, Object>
Optional parameters to the operation. Specify null if the operation takes no parameters.
hasSideEffects
Type: System.Boolean
true if the operation has side-effects; otherwise, false.
callback
Type: System.Action<InvokeOperation>
Optional callback to be called when the operation completes.
userState
Type: System.Object
Optional user state for the operation.

Return Value

Type: System.ServiceModel.DomainServices.Client.InvokeOperation
The invoke operation.

ExceptionCondition
[ArgumentException]

operationName is empty or null.

[ArgumentNullException]

returnType is null.

Show:
© 2015 Microsoft