Class SerializePropertyAttribute
Specifies whether a property should be serialized.
Inheritance
System.Object
    SerializePropertyAttribute
  Namespace: Syncfusion.UI.Xaml.CellGrid.Styles
Assembly: Syncfusion.SfCellGrid.UWP.dll
Syntax
public sealed class SerializePropertyAttribute : Attribute
  Constructors
SerializePropertyAttribute(Boolean)
Initializes a new instance of the SerializePropertyAttribute class.
Declaration
public SerializePropertyAttribute(bool serializeProperty)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | serializeProperty | langword_csharp_True if a property should be serialized; langword_csharp_False otherwise. The default is langword_csharp_True.  | 
      
Fields
Default
The default setting for this attribute.
Declaration
public static readonly SerializePropertyAttribute Default
  Field Value
| Type | 
|---|
| SerializePropertyAttribute | 
No
Specifies that a property should not be serialized. This static field is Read-only.
Declaration
public static readonly SerializePropertyAttribute No
  Field Value
| Type | 
|---|
| SerializePropertyAttribute | 
Yes
Specifies that a property should be serialized. This static field is Read-only.
Declaration
public static readonly SerializePropertyAttribute Yes
  Field Value
| Type | 
|---|
| SerializePropertyAttribute | 
Properties
SerializeProperty
Indicates whether a property is shown in the ToString result.
Declaration
public bool SerializeProperty { get; }
  Property Value
| Type | 
|---|
| System.Boolean | 
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | 
Returns
| Type | 
|---|
| System.Boolean | 
GetHashCode()
Declaration
public override int GetHashCode()
  Returns
| Type | 
|---|
| System.Int32 | 
IsSerializeProperty(PropertyInfo)
Indicates whether the SerializePropertyAttribute has been set for the property.
Declaration
public static bool IsSerializeProperty(PropertyInfo info)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Reflection.PropertyInfo | info | A System.Reflection.PropertyInfo  | 
      
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if property has a SerializePropertyAttribute; False otherwise.  |