Language

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);
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

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

返品

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

属性

例外

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

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

注釈

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

適用対象

こちらもご覧ください