While nothing at compile-time prevents you from placing SossIndexAttribute annotations on any property, at runtime the NamedCache will throw a NotSupportedException if you annotate a property with a return type that StateServer cannot process.
Supported Property Return Types
StateServer supports the following property return types:
- String
- Int32 and Nullable<Int32>
- UInt32 and Nullable<UInt32>
- Int16 and Nullable<Int16>
- UInt16 and Nullable<UInt16>
- Byte and Nullable<Byte>
- SByte and Nullable<SByte>
- Char and Nullable<Char>
- Boolean and Nullable<Boolean>
- Int64 and Nullable<Int64>
- UInt64 and Nullable<UInt64>
- Decimal and Nullable<Decimal>
- Single and Nullable<Single>
- Double and Nullable<Double>
- Guid and Nullable<Guid>
- DateTime and Nullable<DateTime>
- single-dimension arrays of Byte
- SparseBitmap (the type used to store Tag values - see Support for Tags).
See Also