Application.GetContentStream(Uri) メソッド

定義

指定した Uri にあるコンテンツ データ ファイル (「WPF Application Resource, Content, and Data Files (WPF アプリケーション リソース、コンテンツおよびデータ ファイル)」を参照) のリソース ストリームを返します。

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

パラメーター

uriContent
Uri

Loose リソースにマッピングする相対 Uri

戻り値

StreamResourceInfo

指定した StreamResourceInfo にあるコンテンツ データ ファイルを格納している Uri。 Loose リソースが見つからない場合は null が返されます。

属性

例外

Uri に渡される GetContentStream(Uri) は null です。

Uri に渡される GetContentStream(Uri) は、絶対 Uri です。

注釈

このメソッドはスレッド セーフではありません。

適用対象

こちらもご覧ください