Application.GetContentStream(Uri) メソッド

定義

指定した にあるコンテンツ データ ファイルのリソース ストリームを返します (WPF アプリケーション リソース、コンテンツ、およびデータ ファイル)。

public:
 static System::Windows::Resources::StreamResourceInfo ^ GetContentStream(Uri ^ uriContent);
[System.Security.SecurityCritical]
public static System.Windows.Resources.StreamResourceInfo GetContentStream(Uri uriContent);
[<System.Security.SecurityCritical>]
static member GetContentStream : Uri -> System.Windows.Resources.StreamResourceInfo
Public Shared Function GetContentStream (uriContent As Uri) As StreamResourceInfo

パラメーター

uriContent
Uri

緩いリソースにマップされる相対 Uri

返品

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

属性

例外

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

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

注釈

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

適用対象

こちらもご覧ください