AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
DynamoDB property that marks up current member as a hash key element. Exactly one member in a class must be marked with this attribute. Members that are marked as hash key must be convertible to a Primitive object.

Inheritance Hierarchy

Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class DynamoDBHashKeyAttribute : DynamoDBPropertyAttribute
         _Attribute

The DynamoDBHashKeyAttribute type exposes the following members

Constructors

NameDescription
Public Method DynamoDBHashKeyAttribute() Default constructor
Public Method DynamoDBHashKeyAttribute(string) Constructor that specifies an alternate attribute name
Public Method DynamoDBHashKeyAttribute(Type) Constructor that specifies a custom converter. Converter must be the type of a class that implements IPropertyConverter.
Public Method DynamoDBHashKeyAttribute(string, Type) Constructor that specifies an alternate attribute name and a custom converter. Converter must be the type of a class that implements IPropertyConverter.

Properties

NameTypeDescription
Public Property AttributeName System.String Name of attribute that is associated with this member.
Public Property Converter System.Type Type of the custom converter.
Public Property TypeId System.Object Inherited from System.Attribute.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8