Application.GetContentStream(Uri) 메서드

정의

지정된 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

지정된 StreamResourceInfo에 있는 콘텐츠 데이터 파일이 들어 있는 Uri입니다. 느슨한 리소스가 없으면 null이 반환됩니다.

특성

예외

Uri에 전달된 GetContentStream(Uri)가 null인 경우

Uri에 전달된 GetContentStream(Uri)가 절대 Uri인 경우

설명

이 메서드는 스레드로부터 안전하지 않습니다.

적용 대상

추가 정보