Partager via


ApplicationInsightsExtensions.GetApplicationInsightsComponents Method

Definition

Overloads

GetApplicationInsightsComponents(ResourceGroupResource)

Gets a collection of ApplicationInsightsComponentResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApplicationInsightsComponents() instead.

GetApplicationInsightsComponents(SubscriptionResource, CancellationToken)

Gets a list of all Application Insights components within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/components
  • Operation Id: Components_List
  • Default Api Version: 2020-02-02
  • Resource: ApplicationInsightsComponentResource

GetApplicationInsightsComponents(ResourceGroupResource)

Source:
ApplicationInsightsExtensions.cs
Source:
ApplicationInsightsExtensions.cs

Gets a collection of ApplicationInsightsComponentResources in the ResourceGroupResource. MockingTo mock this method, please mock GetApplicationInsightsComponents() instead.

public static Azure.ResourceManager.ApplicationInsights.ApplicationInsightsComponentCollection GetApplicationInsightsComponents (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetApplicationInsightsComponents : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ApplicationInsights.ApplicationInsightsComponentCollection
<Extension()>
Public Function GetApplicationInsightsComponents (resourceGroupResource As ResourceGroupResource) As ApplicationInsightsComponentCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of ApplicationInsightsComponentResources and their operations over a ApplicationInsightsComponentResource.

Exceptions

resourceGroupResource is null.

Applies to

GetApplicationInsightsComponents(SubscriptionResource, CancellationToken)

Source:
ApplicationInsightsExtensions.cs
Source:
ApplicationInsightsExtensions.cs

Gets a list of all Application Insights components within a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Insights/components
  • Operation Id: Components_List
  • Default Api Version: 2020-02-02
  • Resource: ApplicationInsightsComponentResource
public static Azure.Pageable<Azure.ResourceManager.ApplicationInsights.ApplicationInsightsComponentResource> GetApplicationInsightsComponents (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetApplicationInsightsComponents : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApplicationInsights.ApplicationInsightsComponentResource>
<Extension()>
Public Function GetApplicationInsightsComponents (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApplicationInsightsComponentResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of ApplicationInsightsComponentResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to