다음을 통해 공유


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을 통해 기본 서비스 컨테이너에 이미지 서비스를 등록합니다.

적용 대상