IPdxWriter MarkIdentityField Method Pivotal GemFire .NET Client Documentation
Indicate that the given field name should be included in hashCode and equals checks of this object on a server that is using {@link CacheFactory#setPdxReadSerialized(boolean)} or when a client executes a query on a server. The fields that are marked as identity fields are used to generate the hashCode and equals methods of {@link PdxInstance}. Because of this, the identity fields should themselves either be primatives, or implement hashCode and equals. If no fields are set as identity fields, then all fields will be used in hashCode and equals checks. The identity fields should make marked after they are written using a write* method.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 8.1.0.0
Syntax

IPdxWriter MarkIdentityField(
	string fieldName
)

Parameters

fieldName
Type: System String
the name of the field that should be used in the as part of the identity.

Return Value

this PdxWriter
See Also