TrueVault.Net.Models.Schema.Schema.Schema C# (CSharp) Method

Schema() public method

Create a new Schema with the given Name and Fields
A schema must have a valid, non-empty name A Schema must include one or more fields
public Schema ( string name ) : System
name string Required, the name of this Schema
return System
        public Schema(string name, params SchemaField[] fields)
        {
            if (string.IsNullOrWhiteSpace(name))
                throw new InvalidOperationException("A Schema must have a valid, non-empty name");
            if (fields == null || !fields.Any())
                throw new InvalidOperationException("A Schema must include one or more fields");
            Name = name;
            Fields = fields.ToList();
        }

Same methods

Schema::Schema ( ) : System
Schema::Schema ( System.Guid id, string name ) : System
Schema