AWS SDK Version 3 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.

DynamoDB property attribute. Can be used to specify an alternative attribute name or configure a custom converter.

Inheritance Hierarchy

System.Object
  System.Attribute
    Amazon.DynamoDBv2.DataModel.DynamoDBAttribute
      Amazon.DynamoDBv2.DataModel.DynamoDBRenamableAttribute
        Amazon.DynamoDBv2.DataModel.DynamoDBPropertyAttribute

Namespace: Amazon.DynamoDBv2.DataModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public class DynamoDBPropertyAttribute : DynamoDBRenamableAttribute
         _Attribute

The DynamoDBPropertyAttribute type exposes the following members

Constructors

NameDescription
Public Method DynamoDBPropertyAttribute()

Default constructor

Public Method DynamoDBPropertyAttribute(string)

Constructor that specifies an alternate attribute name

Public Method DynamoDBPropertyAttribute(Type)

Constructor that specifies a custom converter. Converter must be the type of a class that implements IPropertyConverter.

Public Method DynamoDBPropertyAttribute(bool)

Constructor that specifies that this type should be stored as epoch seconds.

Public Method DynamoDBPropertyAttribute(string, Type)

Constructor that specifies an alternate attribute name and a custom converter. Converter must be the type of a class that implements IPropertyConverter.

Public Method DynamoDBPropertyAttribute(string, bool)

Constructor that specifies an alternate attribute name and that this type should be stored as epoch seconds.

Properties

NameTypeDescription
Public Property AttributeName System.String Inherited from Amazon.DynamoDBv2.DataModel.DynamoDBRenamableAttribute.
Public Property Converter System.Type

Type of the custom converter. Cannot be set at the same time as StoreAsEpoch.

Public Property StoreAsEpoch System.Boolean

Flag that directs DynamoDBContext to store this data as epoch seconds integer. If false, data is stored as ISO-8601 string. Cannot be set at the same time as Converter.

Public Property TypeId System.Object Inherited from System.Attribute.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

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