[[["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-09-09 UTC."],[[["\u003cp\u003eThis documentation page covers the \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class within the Google.Cloud.NetApp.V1 API, offering extension methods to configure API clients.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API is 1.8.0, and the page provides links to documentation for previous versions back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class includes two methods, \u003ccode\u003eAddNetAppClient\u003c/code\u003e, which adds a singleton \u003ccode\u003eNetAppClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAddNetAppClient\u003c/code\u003e has two overloaded methods, one accepting an \u003ccode\u003eAction<NetAppClientBuilder>\u003c/code\u003e and the other accepting an \u003ccode\u003eAction<IServiceProvider, NetAppClientBuilder>\u003c/code\u003e to customize client configurations.\u003c/p\u003e\n"]]],[],null,["# NetApp v1 API - Class ServiceCollectionExtensions (1.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.9.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.8.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.7.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.6.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.5.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetApp.V1/1.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the NetApp v1 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.NetApp.V1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.NetApp.V1.dll\n\nMethods\n-------\n\n### AddNetAppClient(IServiceCollection, Action\\\u003cNetAppClientBuilder\\\u003e)\n\n public static IServiceCollection AddNetAppClient(this IServiceCollection services, Action\u003cNetAppClientBuilder\u003e action = null)\n\nAdds a singleton [NetAppClient](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.NetAppClient) to `services`.\n\n### AddNetAppClient(IServiceCollection, Action\\\u003cIServiceProvider, NetAppClientBuilder\\\u003e)\n\n public static IServiceCollection AddNetAppClient(this IServiceCollection services, Action\u003cIServiceProvider, NetAppClientBuilder\u003e action)\n\nAdds a singleton [NetAppClient](/dotnet/docs/reference/Google.Cloud.NetApp.V1/latest/Google.Cloud.NetApp.V1.NetAppClient) to `services`."]]