Class StreamResourceInfo
Provides resource stream information for application resources or other packages obtained through the System.Windows.Application.GetResourceStream(System.Windows.Resources.StreamResourceInfo,System.Uri) method.
Inheritance
System.Object
StreamResourceInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Resources
Assembly: OpenSilver.dll
Syntax
public class StreamResourceInfo
Constructors
| Improve this Doc View SourceStreamResourceInfo()
Initializes a new instance of the System.Windows.Resources.StreamResourceInfo class.
Declaration
public StreamResourceInfo()
StreamResourceInfo(Stream, String)
Initializes a new instance of the System.Windows.Resources.StreamResourceInfo class based on a provided stream.
Declaration
public StreamResourceInfo(Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The reference stream. |
System.String | contentType | The Multipurpose Internet Mail Extensions (MIME) content type of the stream. |
Properties
| Improve this Doc View SourceContentType
Gets the content type of a stream.
Declaration
public string ContentType { get; }
Property Value
Type | Description |
---|---|
System.String |
Stream
Gets the actual stream of the resource.
Declaration
public Stream Stream { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |