The KeySchema identifies the primary key as a one attribute primary key (hash) or a composite two attribute (hash-and-range) primary key. Single attribute primary keys have one index value: a HashKeyElement . A composite hash-and-range primary key contains two attribute values: a HashKeyElement and a RangeKeyElement .
 Declaration Syntax
 Declaration Syntax| C# | 
public class KeySchema
 Members
 Members| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description | 
|---|---|---|
|  | KeySchema()()()() | Initializes a new instance of the KeySchema class | 
|  | Equals(Object) | (Inherited from Object.) | 
|  | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | 
|  | GetType()()()() | Gets the type of the current instance.(Inherited from Object.) | 
|  | HashKeyElement | 
            A hash key element is treated as the primary key, and can be a string or a number. Single attribute primary keys have one index value. The
            value can be String, Number, StringSet, NumberSet.
             
             | 
|  | RangeKeyElement | 
            A range key element is treated as a secondary key (used in conjunction with the primary key), and can be a string or a number, and is only
            used for hash-and-range primary keys. The value can be String, Number, StringSet, NumberSet.
             
             | 
|  | ToString()()()() | Returns a string that represents the current object.(Inherited from Object.) | 
|  | WithHashKeyElement(KeySchemaElement) | Obsolete. 
            Sets the HashKeyElement property
             | 
|  | WithRangeKeyElement(KeySchemaElement) | Obsolete. 
            Sets the RangeKeyElement property
             | 
 Inheritance Hierarchy
 Inheritance Hierarchy| Object | |
|  | KeySchema |