IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class > InvokeServerMethodAsync Method : InvokeServerMethodAsync(InvokeServerMethodArgs,CancellationToken) Method |
static
(Shared
in Visual Basic) method for execution on the server.'Declaration
Public Overloads Function InvokeServerMethodAsync( _ ByVal args As InvokeServerMethodArgs, _ ByVal cancellationToken As CancellationToken _ ) As Task(Of Object)
'Usage
Dim instance As EntityManager Dim args As InvokeServerMethodArgs Dim cancellationToken As CancellationToken Dim value As Task(Of Object) value = instance.InvokeServerMethodAsync(args, cancellationToken)
public Task<object> InvokeServerMethodAsync( InvokeServerMethodArgs args, CancellationToken cancellationToken )
Exception | Description |
---|---|
System.ArgumentException | Type name must be fully qualified |
System.ArgumentException | UserState token must be unique for the client |
System.Security.SecurityException | The exception that is thrown when a security error is detected. |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2