Поделиться через


IImageSourceServiceCollection Интерфейс

Определение

public interface class IImageSourceServiceCollection : Microsoft::Extensions::DependencyInjection::IServiceCollection, Microsoft::Maui::Hosting::IMauiServiceCollection, System::Collections::Generic::ICollection<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IList<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>
public interface IImageSourceServiceCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection, Microsoft.Maui.Hosting.IMauiServiceCollection, System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IList<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
type IImageSourceServiceCollection = interface
    interface IMauiServiceCollection
    interface IServiceCollection
    interface IList<ServiceDescriptor>
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
Public Interface IImageSourceServiceCollection
Implements ICollection(Of ServiceDescriptor), IEnumerable(Of ServiceDescriptor), IList(Of ServiceDescriptor), IMauiServiceCollection, IServiceCollection
Реализации

Методы

TryGetService(Type, ServiceDescriptor) (Унаследовано от IMauiServiceCollection)

Методы расширения

AddCompatibilityServices(IImageSourceServiceCollection, Assembly[])
AddService<TImageSource>(IImageSourceServiceCollection, Func<IServiceProvider,IImageSourceService<TImageSource>>)

Регистрирует службу образов в базовом контейнере службы с помощью AddSingleton.

AddService<TImageSource,TImageSourceService>(IImageSourceServiceCollection)

Регистрирует службу образов в базовом контейнере службы с помощью AddSingleton.

Применяется к