CostManagementExtensions.GetTenantsCostManagementViews Method

Definition

Gets the view by view name. <item> Mocking. To mock this method, please mock GetTenantsCostManagementViews(String, CancellationToken) instead. </item>

public static Azure.Response<Azure.ResourceManager.CostManagement.TenantsCostManagementViewsResource> GetTenantsCostManagementViews(this Azure.ResourceManager.Resources.TenantResource tenantResource, string viewName, System.Threading.CancellationToken cancellationToken = default);
static member GetTenantsCostManagementViews : Azure.ResourceManager.Resources.TenantResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CostManagement.TenantsCostManagementViewsResource>
<Extension()>
Public Function GetTenantsCostManagementViews (tenantResource As TenantResource, viewName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of TenantsCostManagementViewsResource)

Parameters

tenantResource
TenantResource

The TenantResource the method will execute against.

viewName
String

View name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

viewName is an empty string, and was expected to be non-empty.

tenantResource is null.

Applies to