[[["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\u003eThis webpage provides documentation for the \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class, which is part of the Google Cloud Security Private CA v1 API, within the \u003ccode\u003eMicrosoft.Extensions.DependencyInjection\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API is 3.9.0, and the page contains links to documentation for versions ranging from 1.0.0 to 3.9.0, allowing users to reference various iterations of the API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e is a static class designed to offer extension methods for setting up API clients, with it's main functionality being the addition of a singleton \u003ccode\u003eCertificateAuthorityServiceClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe main methods of the class are \u003ccode\u003eAddCertificateAuthorityServiceClient\u003c/code\u003e, which has two overloads that permit the user to configure the client using a builder and an optional action.\u003c/p\u003e\n"],["\u003cp\u003eThis webpage documents the inherited members from the base \u003ccode\u003eobject\u003c/code\u003e class, including methods like \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Certificate Authority v1 API - Class ServiceCollectionExtensions (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.9.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.8.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.7.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.6.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.5.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/1.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Certificate Authority 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.Security.PrivateCA.V1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.Security.PrivateCA.V1.dll\n\nMethods\n-------\n\n### AddCertificateAuthorityServiceClient(IServiceCollection, Action\\\u003cCertificateAuthorityServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddCertificateAuthorityServiceClient(this IServiceCollection services, Action\u003cCertificateAuthorityServiceClientBuilder\u003e action = null)\n\nAdds a singleton [CertificateAuthorityServiceClient](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient) to `services`.\n\n### AddCertificateAuthorityServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, CertificateAuthorityServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddCertificateAuthorityServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, CertificateAuthorityServiceClientBuilder\u003e action)\n\nAdds a singleton [CertificateAuthorityServiceClient](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.CertificateAuthorityServiceClient) to `services`."]]