Class SossIndexAttribute
- Namespace
- Scaleout.Client.QuerySupport
- Assembly
- Scaleout.Client.Attributes.dll
A marker Attribute that indicates that the property or class to which it applies should be saved in the ScaleOut service's property index when instances of the class are created or updated.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct|AttributeTargets.Property, Inherited = true, AllowMultiple = false)]
public sealed class SossIndexAttribute : Attribute
- Inheritance
-
SossIndexAttribute
- Inherited Members
Remarks
When you annotate selected properties of a class with SossIndexAttribute you indicate that the values of those properties should be saved in the ScaleOut service's property index whenever an instance of the class is created or updated.
It is not meaningful to annotate static properties with this attribute. Such annotations are ignored.
If the property does not have a "getter" the attribute is ignored.
While you can annotate the properties of interfaces with SossIndexAttribute, type signature information for interfaces is never saved in the ScaleOut service's property index.
Constructors
- SossIndexAttribute()
Create an Attribute used to indicate that the value or type signature of the annotated language element should be written to ScaleOut service's property index.
- SossIndexAttribute(HashIndexPriority)
Create an Attribute used to indicate that the value or type signature of the annotated language element should be written to ScaleOut service's property index.
Properties
- HashPriority
Returns the HashIndexPriority established when this attribute was constructed (see Soss.Client.SossIndexAttribute.SossIndexAttribute(HashIndexPriority)). Returns
null
if the default constructor was used (see Soss.Client.SossIndexAttribute.SossIndexAttribute()).