[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class provides extension methods for configuring API clients within the Cloud Billing Budget v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe class is static and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class, providing access to common object methods such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTwo \u003ccode\u003eAddBudgetServiceClient\u003c/code\u003e methods are available to add a singleton \u003ccode\u003eBudgetServiceClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e, with options for configuring the client using \u003ccode\u003eBudgetServiceClientBuilder\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese \u003ccode\u003eAddBudgetServiceClient\u003c/code\u003e methods accept an \u003ccode\u003eIServiceCollection\u003c/code\u003e parameter and an optional \u003ccode\u003eAction\u003c/code\u003e parameter to further customize the client builder.\u003c/p\u003e\n"],["\u003cp\u003eThe methods return an \u003ccode\u003eIServiceCollection\u003c/code\u003e, allowing for further configuration and chaining in dependency injection.\u003c/p\u003e\n"]]],[],null,["# Cloud Billing Budget v1beta1 API - Class ServiceCollectionExtensions (2.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/2.0.0-beta05/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.0.0-beta05](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/1.0.0-beta05/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Cloud Billing Budget v1beta1 API class ServiceCollectionExtensions.\n\nStatic class to provide extension methods to configure API clients. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ServiceCollectionExtensions \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Microsoft.Extensions.DependencyInjection](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.Billing.Budgets.V1Beta1.dll\n\nMethods\n-------\n\n### AddBudgetServiceClient(IServiceCollection, Action\\\u003cBudgetServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddBudgetServiceClient(this IServiceCollection services, Action\u003cBudgetServiceClientBuilder\u003e action = null)\n\nAdds a singleton [BudgetServiceClient](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceClient) to `services`.\n\n### AddBudgetServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, BudgetServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddBudgetServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, BudgetServiceClientBuilder\u003e action)\n\nAdds a singleton [BudgetServiceClient](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetServiceClient) to `services`."]]