ExecuteAsync Method (SubscriptionController)
In This Topic
Syntax
'Declaration
Public Overridable Function ExecuteAsync( _
ByVal As System.Web.Http.Controllers.HttpControllerContext, _
ByVal As System.Threading.CancellationToken _
) As System.Threading.Tasks.Task(Of HttpResponseMessage)
'Usage
Dim instance As SubscriptionController
Dim controllerContext As System.Web.Http.Controllers.HttpControllerContext
Dim cancellationToken As System.Threading.CancellationToken
Dim value As System.Threading.Tasks.Task(Of HttpResponseMessage)
value = instance.ExecuteAsync(controllerContext, cancellationToken)
public virtual System.Threading.Tasks.Task<HttpResponseMessage> ExecuteAsync(
System.Web.Http.Controllers.HttpControllerContext ,
System.Threading.CancellationToken
)
public function ExecuteAsync(
: System.Web.Http.Controllers.HttpControllerContext;
: System.Threading.CancellationToken
): System.Threading.Tasks.Task; virtual;
public function ExecuteAsync(
: System.Web.Http.Controllers.HttpControllerContext,
: System.Threading.CancellationToken
) : System.Threading.Tasks.Task;
public: virtual System.Threading.Tasks.Task<HttpResponseMessage*>* ExecuteAsync(
System.Web.Http.Controllers.HttpControllerContext* ,
System.Threading.CancellationToken
)
public:
virtual System.Threading.Tasks.Task<HttpResponseMessage^>^ ExecuteAsync(
System.Web.Http.Controllers.HttpControllerContext^ ,
System.Threading.CancellationToken
)
Parameters
- controllerContext
- cancellationToken
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also