CostManagementSettingCollection.GetIfExists Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to get details for this resource from the service.
- Request Path. : /{scope}/providers/Microsoft.CostManagement/settings/{type}.
- Operation Id. : Settings_GetByScope.
- Default Api Version. : 2025-03-01.
public virtual Azure.NullableResponse<Azure.ResourceManager.CostManagement.CostManagementSettingResource> GetIfExists(Azure.ResourceManager.CostManagement.Models.CostManagementSettingType type, System.Threading.CancellationToken cancellationToken = default);
abstract member GetIfExists : Azure.ResourceManager.CostManagement.Models.CostManagementSettingType * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CostManagement.CostManagementSettingResource>
override this.GetIfExists : Azure.ResourceManager.CostManagement.Models.CostManagementSettingType * System.Threading.CancellationToken -> Azure.NullableResponse<Azure.ResourceManager.CostManagement.CostManagementSettingResource>
Public Overridable Function GetIfExists (type As CostManagementSettingType, Optional cancellationToken As CancellationToken = Nothing) As NullableResponse(Of CostManagementSettingResource)
Parameters
Setting type.
- cancellationToken
- CancellationToken
The cancellation token to use.