Show / Hide Table of Contents

Class XRoadElementAttribute

Attribute which identifies serializable property. Provides overrides for property serialization.

Inheritance
System.Object
System.Attribute
XRoadElementAttribute
Implements
System.Runtime.InteropServices._Attribute
Inherited Members
abstract member System.Attribute.Equals: obj -> bool
static member System.Attribute.GetCustomAttribute: System.Reflection.Assembly * System.Type * bool -> System.Attribute
static member System.Attribute.GetCustomAttribute: System.Reflection.Assembly * System.Type -> System.Attribute
static member System.Attribute.GetCustomAttribute: System.Reflection.MemberInfo * System.Type * bool -> System.Attribute
static member System.Attribute.GetCustomAttribute: System.Reflection.MemberInfo * System.Type -> System.Attribute
static member System.Attribute.GetCustomAttribute: System.Reflection.Module * System.Type * bool -> System.Attribute
static member System.Attribute.GetCustomAttribute: System.Reflection.Module * System.Type -> System.Attribute
static member System.Attribute.GetCustomAttribute: System.Reflection.ParameterInfo * System.Type * bool -> System.Attribute
static member System.Attribute.GetCustomAttribute: System.Reflection.ParameterInfo * System.Type -> System.Attribute
static member System.Attribute.GetCustomAttributes: System.Reflection.Assembly * System.Type * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.Assembly * System.Type -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.Assembly * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.Assembly -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.MemberInfo * System.Type * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.MemberInfo * System.Type -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.MemberInfo * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.MemberInfo -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.Module * System.Type * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.Module * System.Type -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.Module * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.Module -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.ParameterInfo * System.Type * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.ParameterInfo * System.Type -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.ParameterInfo * bool -> System.Attribute []
static member System.Attribute.GetCustomAttributes: System.Reflection.ParameterInfo -> System.Attribute []
abstract member System.Attribute.GetHashCode: unit -> int
abstract member System.Attribute.IsDefaultAttribute: unit -> bool
static member System.Attribute.IsDefined: System.Reflection.Assembly * System.Type * bool -> bool
static member System.Attribute.IsDefined: System.Reflection.Assembly * System.Type -> bool
static member System.Attribute.IsDefined: System.Reflection.MemberInfo * System.Type * bool -> bool
static member System.Attribute.IsDefined: System.Reflection.MemberInfo * System.Type -> bool
static member System.Attribute.IsDefined: System.Reflection.Module * System.Type * bool -> bool
static member System.Attribute.IsDefined: System.Reflection.Module * System.Type -> bool
static member System.Attribute.IsDefined: System.Reflection.ParameterInfo * System.Type * bool -> bool
static member System.Attribute.IsDefined: System.Reflection.ParameterInfo * System.Type -> bool
abstract member System.Attribute.Match: obj -> bool
abstract property System.Attribute.TypeId: obj
Namespace: XRoad.Serialization.Attributes
Assembly: XRoadProvider.dll
Syntax
[<AllowNullLiteral; AttributeUsage(2180, AllowMultiple=true)>]
type XRoadElementAttribute (id:int, name:string)
    inherit Attribute
    interface _Attribute
Parameters
Type Name Description
int id
string name

Constructors

new: int * string -> XRoadElementAttribute

Implicit constructor.

Declaration
new: id:int * name:string -> XRoadElementAttribute
Parameters
Type Name Description
int id
string name
Returns
Type Description
XRoadElementAttribute

new: int -> XRoadElementAttribute

Declaration
new: id:int -> XRoadElementAttribute
Parameters
Type Name Description
int id
Returns
Type Description
XRoadElementAttribute

new: string -> XRoadElementAttribute

Declaration
new: name:string -> XRoadElementAttribute
Parameters
Type Name Description
string name
Returns
Type Description
XRoadElementAttribute

new: unit -> XRoadElementAttribute

Initializes new attribute. Property name is used as element name in serialization.

Declaration
new: unit -> XRoadElementAttribute
Returns
Type Description
XRoadElementAttribute

Properties

property Id: int

Unique id for this attribute.

Declaration
property Id: int with get
Property Value
Type Description
int

property IsNullable: bool

Specifies if element is allowed to contain null values.

Declaration
property IsNullable: bool with get, set
Property Value
Type Description
bool

property MergeContent: bool

When true, no extra element is serialized for this property. Instead, property contents become direct child elements of property owner element.

Declaration
property MergeContent: bool with get, set
Property Value
Type Description
bool

property Name: string

Name of the element in serialization context. By default property name is used.

Declaration
property Name: string with get
Property Value
Type Description
string

property Namespace: string

Namespace of the element in serialization context. By default empty namespace is used.

Declaration
property Namespace: string with get, set
Property Value
Type Description
string

property TypeHint: TypeHint

Provides additional serialization context to given property.

Declaration
property TypeHint: TypeHint with get, set
Property Value
Type Description
TypeHint

Implements

System.Runtime.InteropServices._Attribute
Back to top Generated by DocFX