ImageSourceExtensions.GetPlatformImageAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetPlatformImageAsync(IImageSource, IMauiContext) | |
GetPlatformImageAsync(IImageSourceService, IImageSource, IMauiContext) |
GetPlatformImageAsync(IImageSource, IMauiContext)
- Source:
- ImageSourceExtensions.cs
- Source:
- ImageSourceExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<Microsoft::Maui::IImageSourceServiceResult<System::Object ^> ^> ^ GetPlatformImageAsync(Microsoft::Maui::IImageSource ^ imageSource, Microsoft::Maui::IMauiContext ^ mauiContext);
public static System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<object>?> GetPlatformImageAsync (this Microsoft.Maui.IImageSource? imageSource, Microsoft.Maui.IMauiContext mauiContext);
static member GetPlatformImageAsync : Microsoft.Maui.IImageSource * Microsoft.Maui.IMauiContext -> System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<obj>>
<Extension()>
Public Function GetPlatformImageAsync (imageSource As IImageSource, mauiContext As IMauiContext) As Task(Of IImageSourceServiceResult(Of Object))
Parameters
- imageSource
- IImageSource
- mauiContext
- IMauiContext
Returns
Applies to
GetPlatformImageAsync(IImageSourceService, IImageSource, IMauiContext)
- Source:
- ImageSourceExtensions.cs
- Source:
- ImageSourceExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Threading::Tasks::Task<Microsoft::Maui::IImageSourceServiceResult<System::Object ^> ^> ^ GetPlatformImageAsync(Microsoft::Maui::IImageSourceService ^ imageSourceService, Microsoft::Maui::IImageSource ^ imageSource, Microsoft::Maui::IMauiContext ^ mauiContext);
public static System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<object>?> GetPlatformImageAsync (this Microsoft.Maui.IImageSourceService imageSourceService, Microsoft.Maui.IImageSource? imageSource, Microsoft.Maui.IMauiContext mauiContext);
static member GetPlatformImageAsync : Microsoft.Maui.IImageSourceService * Microsoft.Maui.IImageSource * Microsoft.Maui.IMauiContext -> System.Threading.Tasks.Task<Microsoft.Maui.IImageSourceServiceResult<obj>>
<Extension()>
Public Function GetPlatformImageAsync (imageSourceService As IImageSourceService, imageSource As IImageSource, mauiContext As IMauiContext) As Task(Of IImageSourceServiceResult(Of Object))
Parameters
- imageSourceService
- IImageSourceService
- imageSource
- IImageSource
- mauiContext
- IMauiContext
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.