Application.GetContentStream(Uri) Metod

Definition

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

uriContent
Uri

Den släkting Uri som mappar till en lös resurs.

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.

Gäller för

Se även