Application.GetContentStream(Uri) Metódus

Definíció

Erőforrás-adatfolyamot ad vissza a megadott Uri található tartalomadatfájlhoz (lásd: WPF alkalmazáserőforrás, tartalom és adatfájlok).

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

Paraméterek

uriContent
Uri

Az a relatív, Uri amely egy laza erőforráshoz van leképzve.

Válaszok

A StreamResourceInfo megadott Urihelyen található tartalomadatfájlt tartalmazó fájl. Ha nem található laza erőforrás, a függvény null értéket ad vissza.

Attribútumok

Kivételek

Az Uri átadott GetContentStream(Uri) érték null.

Az Uri átadott GetContentStream(Uri) érték abszolút Uri.

Megjegyzések

Ez a módszer nem szálbiztos.

A következőre érvényes:

Lásd még