Share via


Parameter.FromEnum<T>(T) Method

Definition

Create a Parameter from a Enum value. The ParameterType will be String.

public static Microsoft.ML.SearchSpace.Parameter FromEnum<T> (T value) where T : struct;
static member FromEnum : 'T -> Microsoft.ML.SearchSpace.Parameter (requires 'T : struct)
Public Shared Function FromEnum(Of T As Structure) (value As T) As Parameter

Type Parameters

T

Parameters

value
T

Returns

Parameter

Applies to