[[["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 reference documentation for the \u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e class within the Google BigQuery Data Transfer v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documented here is 4.10.0, with older versions ranging from 4.9.0 down to 3.1.0, each having their own specific documentation.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eServiceCollectionExtensions\u003c/code\u003e is a static class that offers extension methods for configuring API clients.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddDataTransferServiceClient\u003c/code\u003e method allows adding a singleton \u003ccode\u003eDataTransferServiceClient\u003c/code\u003e to an \u003ccode\u003eIServiceCollection\u003c/code\u003e, with options to customize the client builder via an \u003ccode\u003eAction\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes inherited members from the base \u003ccode\u003eobject\u003c/code\u003e class, such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e, along with detailed parameter and return type information for each method.\u003c/p\u003e\n"]]],[],null,["# Google BigQuery Data Transfer v1 API - Class ServiceCollectionExtensions (4.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [4.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/latest/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.9.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.9.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.8.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.8.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.7.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.7.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.6.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.6.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.5.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.5.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.4.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.3.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.2.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.1.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [4.0.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/4.0.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/3.4.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/3.3.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/3.2.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/3.1.0/Microsoft.Extensions.DependencyInjection.ServiceCollectionExtensions) \n\n public static class ServiceCollectionExtensions\n\nReference documentation and code samples for the Google BigQuery Data Transfer 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.BigQuery.DataTransfer.V1/latest/Microsoft.Extensions.DependencyInjection)\n\nAssembly\n--------\n\nGoogle.Cloud.BigQuery.DataTransfer.V1.dll\n\nMethods\n-------\n\n### AddDataTransferServiceClient(IServiceCollection, Action\\\u003cDataTransferServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddDataTransferServiceClient(this IServiceCollection services, Action\u003cDataTransferServiceClientBuilder\u003e action = null)\n\nAdds a singleton [DataTransferServiceClient](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/latest/Google.Cloud.BigQuery.DataTransfer.V1.DataTransferServiceClient) to `services`.\n\n### AddDataTransferServiceClient(IServiceCollection, Action\\\u003cIServiceProvider, DataTransferServiceClientBuilder\\\u003e)\n\n public static IServiceCollection AddDataTransferServiceClient(this IServiceCollection services, Action\u003cIServiceProvider, DataTransferServiceClientBuilder\u003e action)\n\nAdds a singleton [DataTransferServiceClient](/dotnet/docs/reference/Google.Cloud.BigQuery.DataTransfer.V1/latest/Google.Cloud.BigQuery.DataTransfer.V1.DataTransferServiceClient) to `services`."]]