Namespace:
Endeca.Data
Assembly: Endeca.Data (in Endeca.Data.dll) Version: 2.1.3.0 (2.1.3.622)
Assembly: Endeca.Data (in Endeca.Data.dll) Version: 2.1.3.0 (2.1.3.622)
Syntax
C# |
---|
protected override string SerializeCommand( EndecaCommand command, CommandSerializationContext context ) |
Visual Basic (Declaration) |
---|
Protected Overrides Function SerializeCommand ( _ command As EndecaCommand, _ context As CommandSerializationContext _ ) As String |
Visual C++ |
---|
protected: virtual String^ SerializeCommand( EndecaCommand^ command, CommandSerializationContext^ context ) override |
Parameters
- command
- Type: Endeca.Data.Provider..::.EndecaCommand
Command to serialize.
- context
- Type: Endeca.Data..::.CommandSerializationContext
Provides contextual information for use during serialization.
Remarks
This method serializes the specified command by iterating over each property of the
specified command that has been decorted with CommandParameterPropertyAttribute.
For each such property, it performs the following steps:
- Calls SerializeProperty(EndecaCommand, PropertyDescriptor, CommandParameterPropertyAttribute, Object) to generate a string representation of the property value
- Calls ShouldIncludeSerializedProperty(EndecaCommand, PropertyDescriptor, CommandParameterPropertyAttribute, String, CommandSerializationContext) to determine if the serialized property value should be included in the combined state representing the command.
Additionally, if there are values available in ExtendedState, then for each value in this collection, SerializeExtendedParameter(String, NameValueCollection) is called.
The serialized property values and extended parameters are collected into a dictionary. JoinCommandState(IDictionary<(Of <(String, String>)>)) is then called to produce a single string from this dictionary.