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 将映像服务注册到基础服务容器。

适用于