StreamResourceInfo Constructor
Collapse the table of content
Expand the table of content

StreamResourceInfo Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the StreamResourceInfo class.

Namespace:  System.Windows.Resources
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Sub New ( _
	stream As Stream, _
	contentType As String _
)

Parameters

stream
Type: System.IO.Stream
The stream to use to create the resource.
contentType
Type: System.String
The MIME type of the content.

ExceptionCondition
ArgumentNullException

stream is Nothing.

It is permissible to pass Nothing for contentType.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft