共用方式為


ResourceProviderCollection Class

Definition

A class representing collection of Provider and their operations over its parent.

public class ResourceProviderCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.Resources.ResourceProviderResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.ResourceProviderResource>
type ResourceProviderCollection = class
    inherit ArmCollection
    interface seq<ResourceProviderResource>
    interface IEnumerable
    interface IAsyncEnumerable<ResourceProviderResource>
Public Class ResourceProviderCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of ResourceProviderResource), IEnumerable(Of ResourceProviderResource)
Inheritance
ResourceProviderCollection
Implements

Constructors

ResourceProviderCollection()

Initializes a new instance of the ResourceProviderCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

Exists(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}
  • Operation Id: Providers_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
ExistsAsync(String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}
  • Operation Id: Providers_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
Get(String, String, CancellationToken)

Gets the specified resource provider.

  • Request Path: /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}
  • Operation Id: Providers_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
GetAll(String, CancellationToken)

Gets all resource providers for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers
  • Operation Id: Providers_List
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
GetAllAsync(String, CancellationToken)

Gets all resource providers for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers
  • Operation Id: Providers_List
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
GetAsync(String, String, CancellationToken)

Gets the specified resource provider.

  • Request Path: /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}
  • Operation Id: Providers_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
GetIfExists(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}
  • Operation Id: Providers_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
GetIfExistsAsync(String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}
  • Operation Id: Providers_Get
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<ResourceProviderResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ResourceProviderResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to