Dela via


DataViewSchema Class

Definition

Represents the schema of an IDataView or an DataViewRow. The schema is a collection of DataViewSchema.Column.

[System.Diagnostics.DebuggerTypeProxy(typeof(Microsoft.ML.SchemaDebuggerProxy))]
public sealed class DataViewSchema : System.Collections.Generic.IEnumerable<Microsoft.ML.DataViewSchema.Column>, System.Collections.Generic.IReadOnlyCollection<Microsoft.ML.DataViewSchema.Column>, System.Collections.Generic.IReadOnlyList<Microsoft.ML.DataViewSchema.Column>
[<System.Diagnostics.DebuggerTypeProxy(typeof(Microsoft.ML.SchemaDebuggerProxy))>]
type DataViewSchema = class
    interface IReadOnlyList<DataViewSchema.Column>
    interface seq<DataViewSchema.Column>
    interface IEnumerable
    interface IReadOnlyCollection<DataViewSchema.Column>
Public NotInheritable Class DataViewSchema
Implements IEnumerable(Of DataViewSchema.Column), IReadOnlyCollection(Of DataViewSchema.Column), IReadOnlyList(Of DataViewSchema.Column)
Inheritance
DataViewSchema
Attributes
Implements

Properties

Count

Number of columns in the schema.

Item[Int32]

Get the column by index.

Item[String]

Get the column by name. Throws an exception if such column does not exist. Note that if multiple columns exist with the same name, the one with the biggest index is returned. The other columns are considered 'hidden', and only accessible by their index.

Methods

GetColumnOrNull(String)

Get the column by name, or null if the column is not present.

GetEnumerator()
ToString()

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Applies to