Class XRoadTypeAttribute
Attribute which identifies serializable type. Provides overrides for content layout, type name and namespace. Default constructor initializes new attribute by giving type name and content layout.
Inheritance
System.Object
System.Attribute
XRoadTypeAttribute
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(4)>]
type XRoadTypeAttribute (name:string, layout:LayoutKind)
inherit Attribute
interface _Attribute
Parameters
Type | Name | Description |
---|---|---|
string | name | |
LayoutKind | layout |
Constructors
new: string * LayoutKind -> XRoadTypeAttribute
Implicit constructor.
Declaration
new: name:string * layout:LayoutKind -> XRoadTypeAttribute
Parameters
Type | Name | Description |
---|---|---|
string | name | |
LayoutKind | layout |
Returns
Type | Description |
---|---|
XRoadTypeAttribute |
new: unit -> XRoadTypeAttribute
Initializes new attribute with sequential layout.
Declaration
new: unit -> XRoadTypeAttribute
Returns
Type | Description |
---|---|
XRoadTypeAttribute |
new: LayoutKind -> XRoadTypeAttribute
Initializes new attribute by givin content layout value. Runtime type name is used as type name in serialization.
Declaration
new: layout:LayoutKind -> XRoadTypeAttribute
Parameters
Type | Name | Description |
---|---|---|
LayoutKind | layout |
Returns
Type | Description |
---|---|
XRoadTypeAttribute |
Properties
property IsAnonymous: bool
Declaration
property IsAnonymous: bool with get, set
Property Value
Type | Description |
---|---|
bool |
property Layout: LayoutKind
Content layout for the type.
Declaration
property Layout: LayoutKind with get
Property Value
Type | Description |
---|---|
LayoutKind |
property Name: string
Name of type in serialization context. If not present the runtime type name is used instead.
Declaration
property Name: string with get
Property Value
Type | Description |
---|---|
string |
property Namespace: string
Namespace of the type in serialization context. Empty (unqualified) by default.
Declaration
property Namespace: string with get, set
Property Value
Type | Description |
---|---|
string |
Implements
System.Runtime.InteropServices._Attribute