SystemAttribute
Soss.ClientSossIndexAttribute
Namespace: Soss.Client
Assembly: soss_namedcache (in soss_namedcache.dll) Version: 6.2.0.0
The SossIndexAttribute type exposes the following members.
Name | Description | |
---|---|---|
SossIndexAttribute |
Create an Attribute used to indicate that the value or type signature of the
annotated language element should be written to StateServer'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 StateServer's property index.
|
Name | Description | |
---|---|---|
HashPriority |
Returns the HashIndexPriority established when this attribute was
constructed (see SossIndexAttribute(HashIndexPriority)).
Returns null if the default constructor was used (see [M:Soss.Client.SossIndexAttribute.SossIndexAttribute()]).
| |
TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |
Name | Description | |
---|---|---|
Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) | |
Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
When you annotate selected properties of a class with SossIndexAttribute you indicate that the values of those properties should be saved in the StateServer's property index whenever an instance of the class is created or updated. Information about the class's Type and Type hierarchy are also included in the information saved in the property index. If you want to be able to query StateServer for instances of a class but don't need to save any property values within the property index, you can annotate the class itself with the SossIndexAttribute.
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 StateServer property index.