Table of Contents

Class EntityProperty

Namespace
Microsoft.WindowsAzure.Storage.Table
Assembly
Microsoft.WindowsAzure.Storage.dll

Class for storing information about a single property in an entity in a table.

public sealed class EntityProperty : IEquatable<EntityProperty>
Inheritance
EntityProperty
Implements
Inherited Members

Constructors

EntityProperty(byte[])

Initializes a new instance of the EntityProperty class by using the byte array value of the property.

public EntityProperty(byte[] input)

Parameters

input byte[]

The value for the new EntityProperty.

EntityProperty(bool?)

Initializes a new instance of the EntityProperty class by using the bool value of the property.

public EntityProperty(bool? input)

Parameters

input bool?

The value for the new EntityProperty.

EntityProperty(DateTimeOffset?)

Initializes a new instance of the EntityProperty class by using the DateTimeOffset value of the property.

public EntityProperty(DateTimeOffset? input)

Parameters

input DateTimeOffset?

The value for the new EntityProperty.

EntityProperty(DateTime?)

Initializes a new instance of the EntityProperty class by using the DateTime value of the property.

public EntityProperty(DateTime? input)

Parameters

input DateTime?

The value for the new EntityProperty.

EntityProperty(double?)

Initializes a new instance of the EntityProperty class by using the double value of the property.

public EntityProperty(double? input)

Parameters

input double?

The value for the new EntityProperty.

EntityProperty(Guid?)

Initializes a new instance of the EntityProperty class by using the Guid value of the property.

public EntityProperty(Guid? input)

Parameters

input Guid?

The value for the new EntityProperty.

EntityProperty(int?)

Initializes a new instance of the EntityProperty class by using the int value of the property.

public EntityProperty(int? input)

Parameters

input int?

The value for the new EntityProperty.

EntityProperty(long?)

Initializes a new instance of the EntityProperty class by using the long value of the property.

public EntityProperty(long? input)

Parameters

input long?

The value for the new EntityProperty.

EntityProperty(string)

Initializes a new instance of the EntityProperty class by using the string value of the property.

public EntityProperty(string input)

Parameters

input string

The value for the new EntityProperty.

Properties

BinaryValue

Gets or sets the byte array value of this EntityProperty object.

public byte[] BinaryValue { get; set; }

Property Value

byte[]

The byte array value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than a byte array.

BooleanValue

Gets or sets the boolean value of this EntityProperty object.

public bool? BooleanValue { get; set; }

Property Value

bool?

The boolean value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than a boolean value.

DateTime

Gets or sets the DateTime value of this EntityProperty object. An exception will be thrown if you attempt to set this property to anything other than a DateTime object.

public DateTime? DateTime { get; set; }

Property Value

DateTime?

The DateTime value of this EntityProperty object.

DateTimeOffsetValue

Gets or sets the DateTimeOffset value of this EntityProperty object.

public DateTimeOffset? DateTimeOffsetValue { get; set; }

Property Value

DateTimeOffset?

The DateTimeOffset value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than a DateTimeOffset value.

DoubleValue

Gets or sets the double value of this EntityProperty object.

public double? DoubleValue { get; set; }

Property Value

double?

The double value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than a double value.

GuidValue

Gets or sets the Guid value of this EntityProperty object.

public Guid? GuidValue { get; set; }

Property Value

Guid?

The Guid value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than a Guid value.

Int32Value

Gets or sets the int value of this EntityProperty object.

public int? Int32Value { get; set; }

Property Value

int?

The int value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than a int value.

Int64Value

Gets or sets the long value of this EntityProperty object.

public long? Int64Value { get; set; }

Property Value

long?

The long value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than an long value.

PropertyAsObject

Gets the EntityProperty as a generic object.

public object PropertyAsObject { get; }

Property Value

object

PropertyType

Gets the EdmType of this EntityProperty object.

public EdmType PropertyType { get; }

Property Value

EdmType

The EdmType of this EntityProperty object.

StringValue

Gets or sets the string value of this EntityProperty object.

public string StringValue { get; set; }

Property Value

string

The string value of this EntityProperty object.

Remarks

An exception is thrown if this property is set to a value other than a string value.

Methods

CreateEntityPropertyFromObject(object)

Creates an EntityProperty from the specified object.

public static EntityProperty CreateEntityPropertyFromObject(object entityValue)

Parameters

entityValue object

An object containing the value for the entity property.

Returns

EntityProperty

An EntityProperty object.

Equals(EntityProperty)

Compares the given object (which is probably an EntityProperty) for equality with this object.

public bool Equals(EntityProperty other)

Parameters

other EntityProperty

The other EntityProperty object.

Returns

bool

true if the objects are equivalent; false otherwise.

Equals(object)

Compares the given object (which is probably an EntityProperty) for equality with this object.

public override bool Equals(object obj)

Parameters

obj object

The other object.

Returns

bool

true if the objects are equivalent; false otherwise.

GeneratePropertyForBool(bool?)

Creates a new EntityProperty object that represents the specified bool value.

public static EntityProperty GeneratePropertyForBool(bool? input)

Parameters

input bool?

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GeneratePropertyForByteArray(byte[])

Creates a new EntityProperty object that represents the specified byte array.

public static EntityProperty GeneratePropertyForByteArray(byte[] input)

Parameters

input byte[]

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GeneratePropertyForDateTimeOffset(DateTimeOffset?)

Creates a new EntityProperty object that represents the specified DateTimeOffset value.

public static EntityProperty GeneratePropertyForDateTimeOffset(DateTimeOffset? input)

Parameters

input DateTimeOffset?

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GeneratePropertyForDouble(double?)

Creates a new EntityProperty object that represents the specified double value.

public static EntityProperty GeneratePropertyForDouble(double? input)

Parameters

input double?

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GeneratePropertyForGuid(Guid?)

Creates a new EntityProperty object that represents the specified Guid value.

public static EntityProperty GeneratePropertyForGuid(Guid? input)

Parameters

input Guid?

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GeneratePropertyForInt(int?)

Creates a new EntityProperty object that represents the specified int value.

public static EntityProperty GeneratePropertyForInt(int? input)

Parameters

input int?

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GeneratePropertyForLong(long?)

Creates a new EntityProperty object that represents the specified long value.

public static EntityProperty GeneratePropertyForLong(long? input)

Parameters

input long?

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GeneratePropertyForString(string)

Creates a new EntityProperty object that represents the specified string value.

public static EntityProperty GeneratePropertyForString(string input)

Parameters

input string

The value for the new EntityProperty.

Returns

EntityProperty

An EntityProperty object with the specified value.

GetHashCode()

Gets the hash code for this entity property.

public override int GetHashCode()

Returns

int

The hash code for the entity property.