Delen via


SchemaDefinition.Create(Type, SchemaDefinition+Direction) Method

Definition

Create a schema definition by enumerating all public fields of the given type.

public static Microsoft.ML.Data.SchemaDefinition Create (Type userType, Microsoft.ML.Data.SchemaDefinition.Direction direction = Microsoft.ML.Data.SchemaDefinition+Direction.Both);
static member Create : Type * Microsoft.ML.Data.SchemaDefinition.Direction -> Microsoft.ML.Data.SchemaDefinition
Public Shared Function Create (userType As Type, Optional direction As SchemaDefinition.Direction = Microsoft.ML.Data.SchemaDefinition+Direction.Both) As SchemaDefinition

Parameters

userType
Type

The type to base the schema on.

direction
SchemaDefinition.Direction

Accept fields and properties based on their direction.

Returns

The generated schema definition.

Applies to