public void Encode(SearchQuery.PropertyCompare part) { Current->header.rt = RestrictionType.PROPERTY; Current->data.prop.relop = (SearchOperation)part.Operation; Current->data.prop.ulPropTag = part.Property.Tag; Current->data.prop.prop = (PropValue *)PropValue.MarshalFromObject(this, part.Property.Tag, part.Value); }
public void Encode(SearchQuery.PropertyContent part) { Current->header.rt = RestrictionType.CONTENT; Current->data.content.ulFuzzyLevel = ContentRestriction.FuzzyLevelFromSearchQuery(part); Current->data.content.ulPropTag = part.Property.Tag; Current->data.content.prop = (PropValue *)PropValue.MarshalFromObject(this, part.Property.Tag, part.Content); }