LearningModelPreview.LoadModelFromStreamAsync(IRandomAccessStreamReference) Method

Definition

Deprecated. Asynchronously loads a model from a provided stream.

public:
 static IAsyncOperation<LearningModelPreview ^> ^ LoadModelFromStreamAsync(IRandomAccessStreamReference ^ modelStream);
 static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference const & modelStream);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference modelStream);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("Use ILearningModelStatics instead of ILearningModelPreviewStatics. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 131072, "Windows.AI.MachineLearning.Preview.MachineLearningPreviewContract")]
public static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference modelStream);
function loadModelFromStreamAsync(modelStream)
Public Shared Function LoadModelFromStreamAsync (modelStream As IRandomAccessStreamReference) As IAsyncOperation(Of LearningModelPreview)

Parameters

modelStream
IRandomAccessStreamReference

The file stream for the model.

Returns

IAsyncOperation<LearningModelPreview>

Returns a LearningModelPreview.

Attributes

Remarks

Warning

This is a deprecated API. Please use the Windows.AI.MachineLearning namespace instead.

Applies to