Entity.InvokeAction 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.]
Called to register an action to be invoked for this entity when submitting changes.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Protected Friend Sub InvokeAction ( _
actionName As String, _
ParamArray parameters As Object() _
)
'Usage
Dim actionName As String
Dim parameters As Object()
Me.InvokeAction(actionName, parameters)
protected internal void InvokeAction(
string actionName,
params Object[] parameters
)
protected public:
void InvokeAction(
String^ actionName,
... array<Object^>^ parameters
)
member InvokeAction :
actionName:string *
parameters:Object[] -> unit
function InvokeAction(
actionName : String,
... parameters : Object[]
)
Parameters
- actionName
Type: System.String
The name of the action to invoke.
- parameters
Type: array<System.Object[]
The parameters values to invoke the specified action with.
Exceptions
Exception | Condition |
---|---|
[InvalidOperationException] | The custom method invocation violates any framework constraints. |
[ValidationException] | Any validation on this object, the custom method or the specified parameters fails. |