PropertyBagItem implements a data model for property that belongs to a property bag.
Default constructor
public Void PropertyBagItem()
Initializes a new instance of PropertyBagItem.
public Void PropertyBagItem(bagKey, propertyName)
Name | Type | Summary |
---|---|---|
bagKey | String | The partition key. |
propertyName | String | The property name. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when bagKey is |
ArgumentNullOrEmptyException | Thrown when propertyName is |
Initializes a new instance of PropertyBagItem.
public Void PropertyBagItem(bagKey, propertyName, propertyValue)
Name | Type | Summary |
---|---|---|
bagKey | String | The partition key. |
propertyName | String | The property name. |
propertyValue | String | The value of the property. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when bagKey is |
ArgumentNullOrEmptyException | Thrown when propertyName is |
Partition key of this property.
public String BagKey { get; set; }
Gets whether the model validation must be enforced.
public Boolean EnforceModelValidation { get; }
Name of the property.
public String PropertyName { get; set; }
Value of the property.
public String PropertyValue { get; set; }
Checks whether other is equal to this object.
public Boolean Equals(other)
Name | Type | Summary |
---|---|---|
other | PropertyBagItem | The object to check equality to. |
Checks whether obj is equal to this object.
public Boolean Equals(obj)
Name | Type | Summary |
---|---|---|
obj | Object | The object to compare this object to. |
Serves as the default hash function.
public Int32 GetHashCode()
Initializes a new instance of PropertyBagItem and loads it data from the underlaying repository.
public PropertyBagItem Load(bagKey, propertyName)
Name | Type | Summary |
---|---|---|
bagKey | String | The partition key. |
propertyName | String | The property name. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when bagKey is |
ArgumentNullOrEmptyException | Thrown when propertyName is |
Initializes a new instance of PropertyBagItem and loads it data from the underlaying repository asyncronously.
public Task<PropertyBagItem> LoadAsync(bagKey, propertyName)
Name | Type | Summary |
---|---|---|
bagKey | String | The partition key. |
propertyName | String | The property name. |
Type | Summary |
---|---|
ArgumentNullOrEmptyException | Thrown when bagKey is |
ArgumentNullOrEmptyException | Thrown when propertyName is |
Returns a textual representation of this PropertyBagItem.
public String ToString()