Skip to main content
S3NS
Documentation Technology areas
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
/
  • .NET
  • Documentation
  • Reference
Overview Guides Reference Samples
S3NS
  • Documentation
    • Overview
    • Guides
    • Reference
    • Samples
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Overview
  • Library reference docs
  • Client library help
  • Google.Api.CommonProtos
  • Google.Api.Gax
  • Google.Apis
  • Google.Cloud.AIPlatform.V1
  • Google.Cloud.AIPlatform.V1Beta1
  • Google.Cloud.AlloyDb.V1
  • Google.Cloud.AlloyDb.V1Alpha
  • Google.Cloud.AlloyDb.V1Beta
  • Google.Cloud.ApiHub.V1
  • Google.Cloud.AppHub.V1
  • Google.Cloud.ArtifactRegistry.V1
  • Google.Cloud.Audit
  • Google.Cloud.AutoML.V1
    • Overview
      • Getting started
      • Version history
    • Microsoft.Extensions.DependencyInjection (namespace)
      • All types
      • ServiceCollectionExtensions
    • All types
    • AnnotationPayload
    • AnnotationPayload.DetailOneofCase
    • AnnotationSpec
    • AnnotationSpecName
    • AnnotationSpecName.ResourceNameType
    • AutoMl
    • AutoMl.AutoMlBase
    • AutoMl.AutoMlClient
    • AutoMlClient
    • AutoMlClientBuilder
    • AutoMlClientImpl
    • AutoMlSettings
    • BatchPredictInputConfig
    • BatchPredictInputConfig.SourceOneofCase
    • BatchPredictOperationMetadata
    • BatchPredictOperationMetadata.Types
    • BatchPredictOperationMetadata.Types.BatchPredictOutputInfo
    • BatchPredictOperationMetadata.Types.BatchPredictOutputInfo.OutputLocationOneofCase
    • BatchPredictOutputConfig
    • BatchPredictOutputConfig.DestinationOneofCase
    • BatchPredictRequest
    • BatchPredictResult
    • BoundingBoxMetricsEntry
    • BoundingBoxMetricsEntry.Types
    • BoundingBoxMetricsEntry.Types.ConfidenceMetricsEntry
    • BoundingPoly
    • ClassificationAnnotation
    • ClassificationEvaluationMetrics
    • ClassificationEvaluationMetrics.Types
    • ClassificationEvaluationMetrics.Types.ConfidenceMetricsEntry
    • ClassificationEvaluationMetrics.Types.ConfusionMatrix
    • ClassificationEvaluationMetrics.Types.ConfusionMatrix.Types
    • ClassificationEvaluationMetrics.Types.ConfusionMatrix.Types.Row
    • ClassificationType
    • CreateDatasetOperationMetadata
    • CreateDatasetRequest
    • CreateModelOperationMetadata
    • CreateModelRequest
    • Dataset
    • Dataset.DatasetMetadataOneofCase
    • DatasetName
    • DatasetName.ResourceNameType
    • DeleteDatasetRequest
    • DeleteModelRequest
    • DeleteOperationMetadata
    • DeployModelOperationMetadata
    • DeployModelRequest
    • DeployModelRequest.ModelDeploymentMetadataOneofCase
    • Document
    • Document.Types
    • Document.Types.Layout
    • Document.Types.Layout.Types
    • Document.Types.Layout.Types.TextSegmentType
    • DocumentDimensions
    • DocumentDimensions.Types
    • DocumentDimensions.Types.DocumentDimensionUnit
    • DocumentInputConfig
    • ExamplePayload
    • ExamplePayload.PayloadOneofCase
    • ExportDataOperationMetadata
    • ExportDataOperationMetadata.Types
    • ExportDataOperationMetadata.Types.ExportDataOutputInfo
    • ExportDataOperationMetadata.Types.ExportDataOutputInfo.OutputLocationOneofCase
    • ExportDataRequest
    • ExportModelOperationMetadata
    • ExportModelOperationMetadata.Types
    • ExportModelOperationMetadata.Types.ExportModelOutputInfo
    • ExportModelRequest
    • GcsDestination
    • GcsSource
    • GetAnnotationSpecRequest
    • GetDatasetRequest
    • GetModelEvaluationRequest
    • GetModelRequest
    • Image
    • Image.DataOneofCase
    • ImageClassificationDatasetMetadata
    • ImageClassificationModelDeploymentMetadata
    • ImageClassificationModelMetadata
    • ImageObjectDetectionAnnotation
    • ImageObjectDetectionDatasetMetadata
    • ImageObjectDetectionEvaluationMetrics
    • ImageObjectDetectionModelDeploymentMetadata
    • ImageObjectDetectionModelMetadata
    • ImportDataOperationMetadata
    • ImportDataRequest
    • InputConfig
    • InputConfig.SourceOneofCase
    • ListDatasetsRequest
    • ListDatasetsResponse
    • ListModelEvaluationsRequest
    • ListModelEvaluationsResponse
    • ListModelsRequest
    • ListModelsResponse
    • Model
    • Model.ModelMetadataOneofCase
    • Model.Types
    • Model.Types.DeploymentState
    • ModelEvaluation
    • ModelEvaluation.MetricsOneofCase
    • ModelEvaluationName
    • ModelEvaluationName.ResourceNameType
    • ModelExportOutputConfig
    • ModelExportOutputConfig.DestinationOneofCase
    • ModelName
    • ModelName.ResourceNameType
    • NormalizedVertex
    • OperationMetadata
    • OperationMetadata.DetailsOneofCase
    • OutputConfig
    • OutputConfig.DestinationOneofCase
    • PredictionService
    • PredictionService.PredictionServiceBase
    • PredictionService.PredictionServiceClient
    • PredictionServiceClient
    • PredictionServiceClientBuilder
    • PredictionServiceClientImpl
    • PredictionServiceSettings
    • PredictRequest
    • PredictResponse
    • TextClassificationDatasetMetadata
    • TextClassificationModelMetadata
    • TextExtractionAnnotation
    • TextExtractionAnnotation.AnnotationOneofCase
    • TextExtractionDatasetMetadata
    • TextExtractionEvaluationMetrics
    • TextExtractionEvaluationMetrics.Types
    • TextExtractionEvaluationMetrics.Types.ConfidenceMetricsEntry
    • TextExtractionModelMetadata
    • TextSegment
    • TextSentimentAnnotation
    • TextSentimentDatasetMetadata
    • TextSentimentEvaluationMetrics
    • TextSentimentModelMetadata
    • TextSnippet
    • TranslationAnnotation
    • TranslationDatasetMetadata
    • TranslationEvaluationMetrics
    • TranslationModelMetadata
    • UndeployModelOperationMetadata
    • UndeployModelRequest
    • UpdateDatasetRequest
    • UpdateModelRequest
  • Google.Cloud.BackupDR.V1
  • Google.Cloud.BareMetalSolution.V2
  • Google.Cloud.Batch.V1
  • Google.Cloud.Batch.V1Alpha
  • Google.Cloud.BeyondCorp.AppConnections.V1
  • Google.Cloud.BigQuery.AnalyticsHub.V1
  • Google.Cloud.BigQuery.DataExchange.V1Beta1
  • Google.Cloud.BigQuery.DataTransfer.V1
  • Google.Cloud.BigQuery.Migration.V2
  • Google.Cloud.BigQuery.Reservation.V1
  • Google.Cloud.BigQuery.Storage.V1
  • Google.Cloud.BigQuery.V2
  • Google.Cloud.Bigtable.Admin.V2
  • Google.Cloud.Bigtable.V2
  • Google.Cloud.Billing.V1
  • Google.Cloud.CertificateManager.V1
  • Google.Cloud.Channel.V1
  • Google.Cloud.Chronicle.V1
  • Google.Cloud.CloudBuild.V1
  • Google.Cloud.CloudControlsPartner.V1
  • Google.Cloud.CloudControlsPartner.V1Beta
  • Google.Cloud.CloudQuotas.V1
  • Google.Cloud.CloudQuotas.V1Beta
  • Google.Cloud.Commerce.Consumer.Procurement.V1
  • Google.Cloud.Compute.V1
  • Google.Cloud.ConfidentialComputing.V1
  • Google.Cloud.Config.V1
  • Google.Cloud.ContactCenterInsights.V1
  • Google.Cloud.Container.V1
  • Google.Cloud.DataCatalog.V1
  • Google.Cloud.DataLabeling.V1Beta1
  • Google.Cloud.Dataform.V1Beta1
  • Google.Cloud.Dataplex.V1
  • Google.Cloud.Dataproc.V1
  • Google.Cloud.Datastore.V1
  • Google.Cloud.Datastream.V1
  • Google.Cloud.Deploy.V1
  • Google.Cloud.DevTools.ContainerAnalysis.V1
  • Google.Cloud.DeveloperConnect.V1
  • Google.Cloud.DeviceStreaming.V1
  • Google.Cloud.Diagnostics.AspNetCore3
  • Google.Cloud.Diagnostics.Common
  • Google.Cloud.Dialogflow.Cx.V3
  • Google.Cloud.Dialogflow.V2
  • Google.Cloud.Dialogflow.V2Beta1
  • Google.Cloud.DiscoveryEngine.V1
  • Google.Cloud.DiscoveryEngine.V1Beta
  • Google.Cloud.Dlp.V2
  • Google.Cloud.DocumentAI.V1
  • Google.Cloud.DocumentAI.V1Beta3
  • Google.Cloud.EdgeNetwork.V1
  • Google.Cloud.Eventarc.Publishing.V1
  • Google.Cloud.Eventarc.V1
  • Google.Cloud.Filestore.V1
  • Google.Cloud.FinancialServices.V1
  • Google.Cloud.Firestore
  • Google.Cloud.Firestore.Admin.V1
  • Google.Cloud.Firestore.V1
  • Google.Cloud.Functions.V1
  • Google.Cloud.Functions.V2
  • Google.Cloud.Functions.V2Beta
  • Google.Cloud.GdcHardwareManagement.V1Alpha
  • Google.Cloud.GkeBackup.V1
  • Google.Cloud.GkeConnect.Gateway.V1
  • Google.Cloud.GkeConnect.Gateway.V1Beta1
  • Google.Cloud.GkeMultiCloud.V1
  • Google.Cloud.Iam.V1
  • Google.Cloud.Iap.V1
  • Google.Cloud.Kms.V1
  • Google.Cloud.Language.V2
  • Google.Cloud.Logging.Console
  • Google.Cloud.Logging.Log4Net
  • Google.Cloud.Logging.NLog
  • Google.Cloud.ManagedKafka.V1
  • Google.Cloud.Memorystore.V1
  • Google.Cloud.Memorystore.V1Beta
  • Google.Cloud.Metastore.V1
  • Google.Cloud.Metastore.V1Alpha
  • Google.Cloud.Metastore.V1Beta
  • Google.Cloud.MigrationCenter.V1
  • Google.Cloud.Monitoring.V3
  • Google.Cloud.NetApp.V1
  • Google.Cloud.NetworkConnectivity.V1
  • Google.Cloud.NetworkManagement.V1
  • Google.Cloud.NetworkServices.V1
  • Google.Cloud.OracleDatabase.V1
  • Google.Cloud.Orchestration.Airflow.Service.V1
  • Google.Cloud.OrgPolicy.V2
  • Google.Cloud.OsConfig.V1Alpha
  • Google.Cloud.Parallelstore.V1
  • Google.Cloud.Parallelstore.V1Beta
  • Google.Cloud.ParameterManager.V1
  • Google.Cloud.PrivilegedAccessManager.V1
  • Google.Cloud.PubSub.V1
  • Google.Cloud.RecaptchaEnterprise.V1
  • Google.Cloud.Redis.Cluster.V1
  • Google.Cloud.Retail.V2
  • Google.Cloud.Run.V2
  • Google.Cloud.SecretManager.V1Beta1
  • Google.Cloud.Security.PrivateCA.V1
  • Google.Cloud.Security.PublicCA.V1
  • Google.Cloud.SecurityCenter.V1
  • Google.Cloud.SecurityCenter.V2
  • Google.Cloud.SecurityCenterManagement.V1
  • Google.Cloud.ServiceDirectory.V1
  • Google.Cloud.ServiceHealth.V1
  • Google.Cloud.Spanner.Admin.Database.V1
  • Google.Cloud.Spanner.Admin.Instance.V1
  • Google.Cloud.Spanner.Common.V1
  • Google.Cloud.Spanner.Data
  • Google.Cloud.Spanner.V1
  • Google.Cloud.Speech.V1P1Beta1
  • Google.Cloud.Speech.V2
  • Google.Cloud.Storage.Control.V2
  • Google.Cloud.Storage.V1
  • Google.Cloud.StorageBatchOperations.V1
  • Google.Cloud.StorageInsights.V1
  • Google.Cloud.StorageTransfer.V1
  • Google.Cloud.Talent.V4
  • Google.Cloud.Talent.V4Beta1
  • Google.Cloud.TelcoAutomation.V1
  • Google.Cloud.TextToSpeech.V1
  • Google.Cloud.TextToSpeech.V1Beta1
  • Google.Cloud.Tpu.V1
  • Google.Cloud.Trace.V1
  • Google.Cloud.Translate.V3
  • Google.Cloud.VMMigration.V1
  • Google.Cloud.Video.LiveStream.V1
  • Google.Cloud.Video.Stitcher.V1
  • Google.Cloud.Video.Transcoder.V1
  • Google.Cloud.VideoIntelligence.V1
  • Google.Cloud.Vision.V1
  • Google.Cloud.VmwareEngine.V1
  • Google.Cloud.VpcAccess.V1
  • Google.Cloud.WebRisk.V1
  • Google.Cloud.Workflows.V1
  • Google.Protobuf
  • Grafeas.V1
  • Grpc.Auth
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
Some or all of the information on this page might not apply to Trusted Cloud by S3NS. See Differences from Google Cloud for more details.
  • Home
  • .NET
  • Documentation
  • Reference

Namespace Microsoft.Extensions.DependencyInjection (3.0.0)

  • 3.4.0 (latest)
  • 3.3.0
  • 3.2.0
  • 3.1.0
  • 3.0.0
  • 2.6.0
  • 2.5.0
  • 2.4.0
  • 2.3.0
  • 2.2.0

Classes

ServiceCollectionExtensions

Static class to provide extension methods to configure API clients.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-10 UTC.

  • Terms
  • Privacy
  • Manage cookies