ImageSource.FromStream Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| FromStream(Func<Stream>) |
Akış fabrikası işlevinden bir ImageSource oluşturur. |
| FromStream(Func<CancellationToken,Task<Stream>>) |
Zaman uyumsuz bir akış fabrikası işlevinden bir ImageSource oluşturur. |
FromStream(Func<Stream>)
- Kaynak:
- ImageSource.cs
- Kaynak:
- ImageSource.cs
- Kaynak:
- ImageSource.cs
- Kaynak:
- ImageSource.cs
Akış fabrikası işlevinden bir ImageSource oluşturur.
public:
static Microsoft::Maui::Controls::ImageSource ^ FromStream(Func<System::IO::Stream ^> ^ stream);
public static Microsoft.Maui.Controls.ImageSource FromStream(Func<System.IO.Stream> stream);
static member FromStream : Func<System.IO.Stream> -> Microsoft.Maui.Controls.ImageSource
Public Shared Function FromStream (stream As Func(Of Stream)) As ImageSource
Parametreler
Döndürülenler
Akış için A StreamImageSource .
Açıklamalar
Sağlanan stream temsilcinin her çağrıda yeni bir akış döndürmesi gerekir.
Şunlara uygulanır
FromStream(Func<CancellationToken,Task<Stream>>)
- Kaynak:
- ImageSource.cs
- Kaynak:
- ImageSource.cs
- Kaynak:
- ImageSource.cs
- Kaynak:
- ImageSource.cs
Zaman uyumsuz bir akış fabrikası işlevinden bir ImageSource oluşturur.
public:
static Microsoft::Maui::Controls::ImageSource ^ FromStream(Func<System::Threading::CancellationToken, System::Threading::Tasks::Task<System::IO::Stream ^> ^> ^ stream);
public static Microsoft.Maui.Controls.ImageSource FromStream(Func<System.Threading.CancellationToken,System.Threading.Tasks.Task<System.IO.Stream>> stream);
static member FromStream : Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<System.IO.Stream>> -> Microsoft.Maui.Controls.ImageSource
Public Shared Function FromStream (stream As Func(Of CancellationToken, Task(Of Stream))) As ImageSource
Parametreler
- stream
- Func<CancellationToken,Task<Stream>>
Görüntü verilerini içeren bir akış döndüren iptal edilebilir bir zaman uyumsuz fabrika işlevi.
Döndürülenler
Akış için A StreamImageSource .
Açıklamalar
Sağlanan stream temsilcinin her çağrıda yeni bir akış döndürmesi gerekir.