本文整理汇总了C#中this.BeginDeletingAsync方法的典型用法代码示例。如果您正苦于以下问题:C# this.BeginDeletingAsync方法的具体用法?C# this.BeginDeletingAsync怎么用?C# this.BeginDeletingAsync使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类this
的用法示例。
在下文中一共展示了this.BeginDeletingAsync方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BeginDeletingAsync
/// <summary>
/// The delete authorization operation deletes the specified
/// authorization from the specified ExpressRouteCircuit.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.Network.IExpressRouteCircuitAuthorizationOperations.
/// </param>
/// <param name='resourceGroupName'>
/// Required. The name of the resource group.
/// </param>
/// <param name='circuitName'>
/// Required. The name of the express route circuit.
/// </param>
/// <param name='authorizationName'>
/// Required. The name of the authorization.
/// </param>
/// <returns>
/// If the resource provide needs to return an error to any operation,
/// it should return the appropriate HTTP error code and a message
/// body as can be seen below.The message should be localized per the
/// Accept-Language header specified in the original request such
/// thatit could be directly be exposed to users
/// </returns>
public static Task<UpdateOperationResponse> BeginDeletingAsync(this IExpressRouteCircuitAuthorizationOperations operations, string resourceGroupName, string circuitName, string authorizationName)
{
return operations.BeginDeletingAsync(resourceGroupName, circuitName, authorizationName, CancellationToken.None);
}
开发者ID:RossMerr,项目名称:azure-sdk-for-net,代码行数:28,代码来源:ExpressRouteCircuitAuthorizationOperationsExtensions.cs
示例2: BeginDeletingAsync
/// <summary>
/// Deletes the pecified Network Security Group from your
/// subscription.If the Network Security group is still associated
/// with some VM/Role/Subnet, the deletion will fail. In order to
/// successfully delete the Network Security, it needs to be not used.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Network.INetworkSecurityGroupOperations.
/// </param>
/// <param name='networkSecurityGroupName'>
/// Required. The name of the Network Security Group to delete.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static Task<OperationStatusResponse> BeginDeletingAsync(this INetworkSecurityGroupOperations operations, string networkSecurityGroupName)
{
return operations.BeginDeletingAsync(networkSecurityGroupName, CancellationToken.None);
}
示例3: BeginDeletingAsync
/// <summary>
/// Removes a DNS zone from a resource group.
/// </summary>
/// <param name='operations'>
/// Reference to the Microsoft.Azure.Management.Dns.IZoneOperations.
/// </param>
/// <param name='resourceGroupName'>
/// Required. The name of the resource group.
/// </param>
/// <param name='zoneName'>
/// Required. The name of the zone without a terminating dot.
/// </param>
/// <param name='ifMatch'>
/// Optional. Defines the If-Match condition. The delete operation will
/// be performed only if the ETag of the zone on the server matches
/// this value.
/// </param>
/// <param name='ifNoneMatch'>
/// Optional. Defines the If-None-Match condition. The delete operation
/// will be performed only if the ETag of the zone on the server does
/// not match this value.
/// </param>
/// <returns>
/// The response to a Zone Delete operation.
/// </returns>
public static Task<ZoneDeleteResponse> BeginDeletingAsync(this IZoneOperations operations, string resourceGroupName, string zoneName, string ifMatch, string ifNoneMatch)
{
return operations.BeginDeletingAsync(resourceGroupName, zoneName, ifMatch, ifNoneMatch, CancellationToken.None);
}
示例4: BeginDeletingAsync
/// <summary>
/// Preview Only. The Delete Reserved IP operation removes a reserved
/// IP from your the subscription.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Network.IReservedIPOperations.
/// </param>
/// <param name='ipName'>
/// The name of the reserved IP.
/// </param>
/// <returns>
/// A standard storage response including an HTTP status code and
/// request ID.
/// </returns>
public static Task<OperationResponse> BeginDeletingAsync(this IReservedIPOperations operations, string ipName)
{
return operations.BeginDeletingAsync(ipName, CancellationToken.None);
}
示例5: BeginDeleting
/// <summary>
/// Deletes a job collection.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Scheduler.IJobCollectionOperations.
/// </param>
/// <param name='cloudServiceName'>
/// The name of the cloud service.
/// </param>
/// <param name='jobCollectionName'>
/// The name of the job collection to delete.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static OperationResponse BeginDeleting(this IJobCollectionOperations operations, string cloudServiceName, string jobCollectionName)
{
try
{
return operations.BeginDeletingAsync(cloudServiceName, jobCollectionName).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例6: BeginDeletingAsync
/// <summary>
/// Deletes a Policy
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IPolicyOperations.
/// </param>
/// <param name='name'>
/// Required. Policy name.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static Task<LongRunningOperationResponse> BeginDeletingAsync(this IPolicyOperations operations, string name, CustomRequestHeaders customRequestHeaders)
{
return operations.BeginDeletingAsync(name, customRequestHeaders, CancellationToken.None);
}
示例7: BeginDeletingAsync
/// <summary>
/// The Delete Store Item operation deletes Windows Azure Store entries
/// that re provisioned for a subscription.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Store.IAddOnOperations.
/// </param>
/// <param name='cloudServiceName'>
/// The name of the cloud service to which this store item will be
/// assigned.
/// </param>
/// <param name='resourceProviderNamespace'>
/// The namespace in which this store item resides.
/// </param>
/// <param name='resourceProviderType'>
/// The type of store item to be deleted.
/// </param>
/// <param name='resourceProviderName'>
/// The name of this resource provider.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static Task<AddOnOperationStatusResponse> BeginDeletingAsync(this IAddOnOperations operations, string cloudServiceName, string resourceProviderNamespace, string resourceProviderType, string resourceProviderName)
{
return operations.BeginDeletingAsync(cloudServiceName, resourceProviderNamespace, resourceProviderType, resourceProviderName, CancellationToken.None);
}
示例8: BeginDeletingAsync
/// <summary>
/// Deletes a Fabric
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.SiteRecovery.IFabricOperations.
/// </param>
/// <param name='fabricName'>
/// Required. Fabric Name.
/// </param>
/// <param name='input'>
/// Required. Fabric deletion input.
/// </param>
/// <param name='customRequestHeaders'>
/// Optional. Request header parameters.
/// </param>
/// <returns>
/// A standard service response for long running operations.
/// </returns>
public static Task<LongRunningOperationResponse> BeginDeletingAsync(this IFabricOperations operations, string fabricName, FabricDeletionInput input, CustomRequestHeaders customRequestHeaders)
{
return operations.BeginDeletingAsync(fabricName, input, customRequestHeaders, CancellationToken.None);
}
示例9: BeginDeletingAsync
/// <summary>
/// The Begin Deleting Virtual Machine Image operation deletes the
/// specified virtual machine image.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineVMImageOperations.
/// </param>
/// <param name='vmImageName'>
/// Required. The name of the virtual machine image to delete.
/// </param>
/// <param name='deleteFromStorage'>
/// Required. Specifies that the source blob for the image should also
/// be deleted from storage.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static Task<OperationResponse> BeginDeletingAsync(this IVirtualMachineVMImageOperations operations, string vmImageName, bool deleteFromStorage)
{
return operations.BeginDeletingAsync(vmImageName, deleteFromStorage, CancellationToken.None);
}
示例10: BeginDeletingAsync
/// <summary>
/// The Delete Role operation deletes the specified virtual machine.
/// (see
/// http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx
/// for more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations.
/// </param>
/// <param name='serviceName'>
/// The name of your service.
/// </param>
/// <param name='deploymentName'>
/// The name of your deployment.
/// </param>
/// <param name='virtualMachineName'>
/// The name of the virtual machine to delete.
/// </param>
/// <param name='deleteFromStorage'>
/// Optional. Specifies that the source blob(s) for the virtual machine
/// should also be deleted from storage.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static Task<OperationResponse> BeginDeletingAsync(this IVirtualMachineOperations operations, string serviceName, string deploymentName, string virtualMachineName, bool deleteFromStorage)
{
return operations.BeginDeletingAsync(serviceName, deploymentName, virtualMachineName, deleteFromStorage, CancellationToken.None);
}
示例11: BeginDeletingAsync
/// <summary>
/// The delete loadbalancer operation deletes the specified
/// loadbalancer.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.Azure.Management.Network.ILoadBalancerOperations.
/// </param>
/// <param name='resourceGroupName'>
/// Required. The name of the resource group.
/// </param>
/// <param name='loadBalancerName'>
/// Required. The name of the loadBalancer.
/// </param>
/// <returns>
/// If the resource provide needs to return an error to any operation,
/// it should return the appropriate HTTP error code and a message
/// body as can be seen below.The message should be localized per the
/// Accept-Language header specified in the original request such
/// thatit could be directly be exposed to users
/// </returns>
public static Task<UpdateOperationResponse> BeginDeletingAsync(this ILoadBalancerOperations operations, string resourceGroupName, string loadBalancerName)
{
return operations.BeginDeletingAsync(resourceGroupName, loadBalancerName, CancellationToken.None);
}
示例12: BeginDeleting
/// <summary>
/// The Delete Role operation deletes the specified virtual machine.
/// (see
/// http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx
/// for more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IVirtualMachineOperations.
/// </param>
/// <param name='serviceName'>
/// The name of your service.
/// </param>
/// <param name='deploymentName'>
/// The name of your deployment.
/// </param>
/// <param name='virtualMachineName'>
/// The name of the virtual machine to delete.
/// </param>
/// <param name='deleteFromStorage'>
/// Optional. Specifies that the source blob(s) for the virtual machine
/// should also be deleted from storage.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static OperationResponse BeginDeleting(this IVirtualMachineOperations operations, string serviceName, string deploymentName, string virtualMachineName, bool deleteFromStorage)
{
try
{
return operations.BeginDeletingAsync(serviceName, deploymentName, virtualMachineName, deleteFromStorage).Result;
}
catch (AggregateException ex)
{
if (ex.InnerExceptions.Count > 1)
{
throw;
}
else
{
throw ex.InnerException;
}
}
}
示例13: BeginDeletingAsync
/// <summary>
/// Deletes a vault
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.RecoveryServices.IVaultOperations.
/// </param>
/// <param name='cloudServiceName'>
/// Required. The name of the cloud service containing the job
/// collection.
/// </param>
/// <param name='vaultName'>
/// Required. The name of the vault to delete.
/// </param>
/// <returns>
/// The response body contains the status of the specified asynchronous
/// operation, indicating whether it has succeeded, is inprogress, or
/// has failed. Note that this status is distinct from the HTTP status
/// code returned for the Get Operation Status operation itself. If
/// the asynchronous operation succeeded, the response body includes
/// the HTTP status code for the successful request. If the
/// asynchronous operation failed, the response body includes the HTTP
/// status code for the failed request, and also includes error
/// information regarding the failure.
/// </returns>
public static Task<RecoveryServicesOperationStatusResponse> BeginDeletingAsync(this IVaultOperations operations, string cloudServiceName, string vaultName)
{
return operations.BeginDeletingAsync(cloudServiceName, vaultName, CancellationToken.None);
}
示例14: BeginDeletingAsync
/// <summary>
/// Delete a cloud service.
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Scheduler.ICloudServiceOperations.
/// </param>
/// <param name='cloudServiceName'>
/// Required. The cloud service name.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static Task<AzureOperationResponse> BeginDeletingAsync(this ICloudServiceOperations operations, string cloudServiceName)
{
return operations.BeginDeletingAsync(cloudServiceName, CancellationToken.None);
}
示例15: BeginDeletingAsync
/// <summary>
/// The Begin Deleting Service Certificate operation deletes a service
/// certificate from the certificate store of a hosted service. This
/// operation is an asynchronous operation. To determine whether the
/// management service has finished processing the request, call Get
/// Operation Status. (see
/// http://msdn.microsoft.com/en-us/library/windowsazure/ee460803.aspx
/// for more information)
/// </summary>
/// <param name='operations'>
/// Reference to the
/// Microsoft.WindowsAzure.Management.Compute.IServiceCertificateOperations.
/// </param>
/// <param name='parameters'>
/// Required. Parameters supplied to the Begin Deleting Service
/// Certificate operation.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
public static Task<AzureOperationResponse> BeginDeletingAsync(this IServiceCertificateOperations operations, ServiceCertificateDeleteParameters parameters)
{
return operations.BeginDeletingAsync(parameters, CancellationToken.None);
}