Application.GetContentStream(Uri) Methode
Definition
Gibt einen Ressourcenstream für eine Inhaltsdatendatei zurück, die sich unter dem angegebenen Uri befindet (weitere Informationen finden Sie unter WPF-Anwendungsressource, Inhalts- und Datendateien).Returns a resource stream for a content data file that is located at the specified Uri (see WPF Application Resource, Content, and Data Files).
public:
static System::Windows::Resources::StreamResourceInfo ^ GetContentStream(Uri ^ uriContent);
[System.Security.SecurityCritical]
public static System.Windows.Resources.StreamResourceInfo GetContentStream (Uri uriContent);
static member GetContentStream : Uri -> System.Windows.Resources.StreamResourceInfo
Public Shared Function GetContentStream (uriContent As Uri) As StreamResourceInfo
Parameter
- uriContent
- Uri
Der relative Uri, der einer freien Ressource zugeordnet wird.The relative Uri that maps to a loose resource.
Gibt zurück
Eine StreamResourceInfo mit einer Inhaltsdatendatei, die sich unter dem angegebenen Uri befindet.A StreamResourceInfo that contains a content data file that is located at the specified Uri. Wenn eine freie Ressource nicht gefunden wurde, wird NULL zurückgegeben.If a loose resource is not found, null is returned.
- Attribute
Ausnahmen
Der an Uri übergebene GetContentStream(Uri) ist NULL.The Uri that is passed to GetContentStream(Uri) is null.
Der an Uri übergebene GetContentStream(Uri) ist ein absoluter Uri.The Uri that is passed to GetContentStream(Uri) is an absolute Uri.
Hinweise
Diese Methode ist nicht Thread sicher.This method is not thread safe.