Export (0) Print
Expand All

DomainContext.InvokeOperation<TValue> Method (String, Type, IDictionary<String, Object>, Boolean, Action<InvokeOperation<TValue>>, 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<TValue> InvokeOperation<TValue>(
	string operationName,
	Type returnType,
	IDictionary<string, Object> parameters,
	bool hasSideEffects,
	Action<InvokeOperation<TValue>> callback,
	Object userState
)

Type Parameters

TValue

The type of value that will be returned.

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<TValue>>
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<TValue>
The invoke operation.

ExceptionCondition
[ArgumentException]

operationName is empty or null.

[ArgumentNullException]

returnType is null.

Show:
© 2014 Microsoft