Share via


MockableDataShareTenantResource.RejectConsumerInvitationAsync Method

Definition

Reject an invitation

  • Request Path: /providers/Microsoft.DataShare/locations/{location}/rejectInvitation
  • Operation Id: ConsumerInvitations_RejectInvitation
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.DataShareConsumerInvitationResource>> RejectConsumerInvitationAsync (Azure.Core.AzureLocation location, Azure.ResourceManager.DataShare.DataShareConsumerInvitationData data, System.Threading.CancellationToken cancellationToken = default);
abstract member RejectConsumerInvitationAsync : Azure.Core.AzureLocation * Azure.ResourceManager.DataShare.DataShareConsumerInvitationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.DataShareConsumerInvitationResource>>
override this.RejectConsumerInvitationAsync : Azure.Core.AzureLocation * Azure.ResourceManager.DataShare.DataShareConsumerInvitationData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DataShare.DataShareConsumerInvitationResource>>
Public Overridable Function RejectConsumerInvitationAsync (location As AzureLocation, data As DataShareConsumerInvitationData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DataShareConsumerInvitationResource))

Parameters

location
AzureLocation

Location of the invitation.

data
DataShareConsumerInvitationData

An invitation payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

data is null.

Applies to