Share via


ImageLibrary.Deserialize Method

Definition

Overloads

Deserialize(JoinableTaskFactory, Stream, Boolean, ITracer)

Deserializes an image library from stream

Deserialize(Stream, Boolean, ITracer, IStreamStorage<String>)

Deserializes an image library from stream.

Deserialize(JoinableTaskFactory, Stream, Boolean, ITracer, IStreamStorage<String>)

Deserializes an image library from stream

Deserialize(JoinableTaskFactory, Stream, Boolean, ITracer)

Deserializes an image library from stream

public static Microsoft.VisualStudio.Imaging.ImageLibrary Deserialize (Microsoft.VisualStudio.Threading.JoinableTaskFactory jtf, System.IO.Stream stream, bool isDefault = false, Microsoft.VisualStudio.Utilities.ITracer tracer = default);
static member Deserialize : Microsoft.VisualStudio.Threading.JoinableTaskFactory * System.IO.Stream * bool * Microsoft.VisualStudio.Utilities.ITracer -> Microsoft.VisualStudio.Imaging.ImageLibrary
Public Shared Function Deserialize (jtf As JoinableTaskFactory, stream As Stream, Optional isDefault As Boolean = false, Optional tracer As ITracer = Nothing) As ImageLibrary

Parameters

jtf
JoinableTaskFactory

The joinable task factory to use for threading operations

stream
Stream

The stream to deserialize from

isDefault
Boolean

Whether or not this ImageLibrary should be used as ImageLibrary.Default

tracer
ITracer

The tracer to use

Returns

Applies to

Deserialize(Stream, Boolean, ITracer, IStreamStorage<String>)

Deserializes an image library from stream.

public static Microsoft.VisualStudio.Imaging.ImageLibrary Deserialize (System.IO.Stream stream, bool isDefault = false, Microsoft.VisualStudio.Utilities.ITracer tracer = default, Microsoft.VisualStudio.Utilities.IStreamStorage<string> cacheStorage = default);
static member Deserialize : System.IO.Stream * bool * Microsoft.VisualStudio.Utilities.ITracer * Microsoft.VisualStudio.Utilities.IStreamStorage<string> -> Microsoft.VisualStudio.Imaging.ImageLibrary
Public Shared Function Deserialize (stream As Stream, Optional isDefault As Boolean = false, Optional tracer As ITracer = Nothing, Optional cacheStorage As IStreamStorage(Of String) = Nothing) As ImageLibrary

Parameters

stream
Stream

The stream to deserialize from

isDefault
Boolean

Whether or not this ImageLibrary should be used as ImageLibrary.Default

tracer
ITracer

The tracer to use

cacheStorage
IStreamStorage<String>

The storage used by the ImageLibrary for caching.

Returns

Returns ImageLibrary.

Applies to

Deserialize(JoinableTaskFactory, Stream, Boolean, ITracer, IStreamStorage<String>)

Deserializes an image library from stream

public static Microsoft.VisualStudio.Imaging.ImageLibrary Deserialize (Microsoft.VisualStudio.Threading.JoinableTaskFactory jtf, System.IO.Stream stream, bool isDefault = false, Microsoft.VisualStudio.Utilities.ITracer tracer = default, Microsoft.VisualStudio.Utilities.IStreamStorage<string> cacheStorage = default);
static member Deserialize : Microsoft.VisualStudio.Threading.JoinableTaskFactory * System.IO.Stream * bool * Microsoft.VisualStudio.Utilities.ITracer * Microsoft.VisualStudio.Utilities.IStreamStorage<string> -> Microsoft.VisualStudio.Imaging.ImageLibrary
Public Shared Function Deserialize (jtf As JoinableTaskFactory, stream As Stream, Optional isDefault As Boolean = false, Optional tracer As ITracer = Nothing, Optional cacheStorage As IStreamStorage(Of String) = Nothing) As ImageLibrary

Parameters

jtf
JoinableTaskFactory

The joinable task factory to use for threading operations

stream
Stream

The stream to deserialize from

isDefault
Boolean

Whether or not this ImageLibrary should be used as ImageLibrary.Default

tracer
ITracer

The tracer to use

cacheStorage
IStreamStorage<String>

The storage used by the ImageLibrary for caching.

Returns

Applies to