DomainService.Invoke 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.]
Invokes the specified operation.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Overridable Function Invoke ( _
invokeDescription As InvokeDescription, _
<OutAttribute> ByRef validationErrors As IEnumerable(Of ValidationResult) _
) As Object
'Usage
Dim instance As DomainService
Dim invokeDescription As InvokeDescription
Dim validationErrors As IEnumerable(Of ValidationResult)
Dim returnValue As Object
returnValue = instance.Invoke(invokeDescription, _
validationErrors)
public virtual Object Invoke(
InvokeDescription invokeDescription,
out IEnumerable<ValidationResult> validationErrors
)
public:
virtual Object^ Invoke(
InvokeDescription^ invokeDescription,
[OutAttribute] IEnumerable<ValidationResult^>^% validationErrors
)
abstract Invoke :
invokeDescription:InvokeDescription *
validationErrors:IEnumerable<ValidationResult> byref -> Object
override Invoke :
invokeDescription:InvokeDescription *
validationErrors:IEnumerable<ValidationResult> byref -> Object
public function Invoke(
invokeDescription : InvokeDescription,
validationErrors : IEnumerable<ValidationResult>
) : Object
Parameters
- invokeDescription
Type: System.ServiceModel.DomainServices.Server.InvokeDescription
The description of the invoke operation to perform.
- validationErrors
Type: System.Collections.Generic.IEnumerable<ValidationResult>%
An output parameter collection to which any validation errors will be added. This will be set to nulla null reference (Nothing in Visual Basic) if no validation errors are encountered.
Return Value
Type: System.Object
The return value of the invoked operation.