Пример #1
0
 /// <summary>
 /// Checks whether a resource exists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing the resource to check. The name
 /// is case insensitive.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// The resource provider of the resource to check.
 /// </param>
 /// <param name='parentResourcePath'>
 /// The parent resource identity.
 /// </param>
 /// <param name='resourceType'>
 /// The resource type.
 /// </param>
 /// <param name='resourceName'>
 /// The name of the resource to check whether it exists.
 /// </param>
 /// <param name='apiVersion'>
 /// The API version to use for the operation.
 /// </param>
 public static bool CheckExistence(this IResourcesOperations operations, string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, string apiVersion)
 {
     return(operations.CheckExistenceAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, apiVersion).GetAwaiter().GetResult());
 }