Navigation :
PropertyValue
Name |
Value |
Assembly |
Catel.Core |
Namespace |
Catel.Data |
Available on |
.NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS |
public class PropertyValue : ISerializable
Base types
ISerializable
Class holding a property value to serialize using the ModelBase.
Constructors
PropertyValue()
Initializes a new instance of the PropertyValue class.
PropertyValue(PropertyData propertyData, KeyValuePair<string, object> keyValuePair)
Initializes a new instance of the PropertyValue class.
Parameters
Name |
Description |
propertyData |
The property data. |
keyValuePair |
The key value pair. |
Exceptions
Name |
Description |
ArgumentNullException |
The propertyData isnull . |
ArgumentException |
TheKey of keyValuePair isnull or whitespace. |
PropertyValue(PropertyData propertyData, string name, object value)
Initializes a new instance of the PropertyValue class.
Parameters
Name |
Description |
propertyData |
The property data. |
name |
The name of the property. |
value |
The value of the property. |
Exceptions
Name |
Description |
ArgumentNullException |
The propertyData isnull . |
ArgumentException |
The name isnull or whitespace. |
PropertyValue(SerializationInfo info, StreamingContext context)
Initializes a new instance of the PropertyValue class.
Properties
GraphId
Gets or sets the graph identifier.
GraphRefId
Gets or sets the graph reference identifier.
Name
Gets or sets the name of the property.
PropertyData
Gets the property data.
Value
Gets or sets the value of the property.
Methods
GetObjectData(SerializationInfo info, StreamingContext context)
Populates a SerializationInfo with the data needed to serialize the target object.
Parameters
Exceptions
Name |
Description |
T:System.Security.SecurityException |
The caller does not have the required permission. |
Have a question about Catel? Use StackOverflow with the Catel tag!
Discussion