Share via


LearningModelPreview.LoadModelFromStreamAsync Method

Definition

Deprecated. Asynchronously loads a model from a provided stream.

public:
 static IAsyncOperation<LearningModelPreview ^> ^ LoadModelFromStreamAsync(IRandomAccessStreamReference ^ modelStream);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<LearningModelPreview> LoadModelFromStreamAsync(IRandomAccessStreamReference const& 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")]
 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

Returns a LearningModelPreview.

Attributes

Remarks

Warning

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

Applies to