Serializes an item and filters out properties based on the serializationMode flag that's provided.
The property definitions associated with the item's properties.
The item being serialized.
The flag that determines how the item should be serialized.
Serializes an item and filters out properties based on the serializationMode flag that's provided.