IImageSourceServiceCollection 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 将映像服务注册到基础服务容器。 |