26 private string _ruleName;
27 private string _description;
28 private string _property;
30 private string _originProperty;
46 get {
return _ruleName; }
47 internal set { _ruleName = value; }
56 get {
return _description; }
57 internal set { _description = value; }
66 get {
return _property; }
67 internal set { _property = value; }
78 get {
return _severity; }
79 internal set { _severity = value; }
88 get {
return _originProperty; }
89 internal set { _originProperty = value; }
92 #region MobileObject overrides
106 info.
AddValue(
"_ruleName", _ruleName);
107 info.
AddValue(
"_description", _description);
108 info.
AddValue(
"_property", _property);
109 info.
AddValue(
"_severity", (
int)_severity);
110 info.
AddValue(
"_originProperty", _originProperty);
112 base.OnGetState(info, mode);
127 _ruleName = info.GetValue<
string>(
"_ruleName");
128 _description = info.GetValue<
string>(
"_description");
129 _property = info.GetValue<
string>(
"_property");
131 _originProperty = info.GetValue<
string>(
"_originProperty");
133 base.OnSetState(info, mode);
Inherit from this base class to easily create a serializable class.
Stores details about a specific broken business rule.
override void OnGetState(SerializationInfo info, StateMode mode)
Override this method to insert your field values into the MobileFormatter serialzation stream.
string Property
Provides access to the property affected by the broken rule.
override string ToString()
Gets a string representation for this object.
override void OnSetState(SerializationInfo info, StateMode mode)
Override this method to retrieve your field values from the MobileFormatter serialzation stream.
string Description
Provides access to the description of the broken rule.
RuleSeverity Severity
Gets the severity of the broken rule.
string RuleName
Provides access to the name of the broken rule.
BrokenRule()
Creates an instance of this type.
string OriginProperty
Gets or sets the origin property.
Object containing the serialization data for a specific object.
void AddValue(string name, object value)
Adds a value to the serialization stream.
StateMode
Indicates the reason the MobileFormatter functionality has been invoked.
RuleSeverity
Values for validation rule severities.
@ Serializable
Prevents updating or inserting until the transaction is complete.