SchemaDefinition.Create(Type, SchemaDefinition+Direction) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.