Application.GetContentStream(Uri) Methode

Definitie

Hiermee wordt een resourcestroom geretourneerd voor een inhoudsgegevensbestand dat zich bevindt op de opgegeven Uri (zie WPF toepassingsresource, inhoud en gegevensbestanden).

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

Parameters

uriContent
Uri

Het relatieve Uri dat is toegewezen aan een losse resource.

Retouren

Een StreamResourceInfo met een inhoudsgegevensbestand dat zich op de opgegeven Urilocatie bevindt. Als er geen losse resource wordt gevonden, wordt null geretourneerd.

Kenmerken

Uitzonderingen

De Uri doorgegeven waarde GetContentStream(Uri) is null.

De Uri doorgegeven aan GetContentStream(Uri) is een absolute Uri.

Opmerkingen

Deze methode is niet thread safe.

Van toepassing op

Zie ook