Application.GetContentStream(Uri) Metoda

Definice

Vrátí datový proud prostředku pro datový soubor obsahu umístěný v zadaném Uri (viz WPF (Windows Presentation Foundation) Prostředek aplikace, obsah a datové soubory).

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

Parametry

uriContent
Uri

Relativní, Uri který se mapuje na volný zdroj.

Návraty

A StreamResourceInfo obsahující datový soubor obsahu, který se nachází v zadaném Urisouboru . Pokud se volný prostředek nenajde, vrátí se hodnota null.

Atributy

Výjimky

To Uri je předáno GetContentStream(Uri) je absolutní Uri.

Poznámky

Tato metoda není bezpečná pro přístup z více vláken.

Platí pro

Viz také