Application.GetContentStream(Uri) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Returnerar en resursström för en innehållsdatafil som finns på angiven Uri (se WPF programresurs, innehåll och datafiler).
public:
static System::Windows::Resources::StreamResourceInfo ^ GetContentStream(Uri ^ uriContent);
[System.Security.SecurityCritical]
public static System.Windows.Resources.StreamResourceInfo GetContentStream(Uri uriContent);
public static System.Windows.Resources.StreamResourceInfo GetContentStream(Uri uriContent);
[<System.Security.SecurityCritical>]
static member GetContentStream : Uri -> System.Windows.Resources.StreamResourceInfo
static member GetContentStream : Uri -> System.Windows.Resources.StreamResourceInfo
Public Shared Function GetContentStream (uriContent As Uri) As StreamResourceInfo
Parametrar
Returer
En StreamResourceInfo som innehåller en innehållsdatafil som finns på angiven Uri. Om en lös resurs inte hittas returneras null.
- Attribut
Undantag
Det Uri som skickas till GetContentStream(Uri) är null.
Det Uri som skickas till GetContentStream(Uri) är en absolut Uri.
Kommentarer
Den här metoden är inte trådsäker.