Gemstone Data Library
Show/Hide TOC

# RecordRestrictionCombineAnd Method

Combines two record restrictions with an AND condition.

## Definition

Namespace: Gemstone.Data.Model
Assembly: Gemstone.Data (in Gemstone.Data.dll) Version: 1.0.143 -- Release Build+e39ee60a4b307fea0c37636ce689adb1b037d737
C#
View Source Request Example

    public static RecordRestriction? CombineAnd(
    	RecordRestriction? left,
    	RecordRestriction? right
    )

VB
View Source Request Example

    Public Shared Function CombineAnd (
    	left As RecordRestriction,
    	right As RecordRestriction
    ) As RecordRestriction

C++
View Source Request Example

    public:
    static RecordRestriction^ CombineAnd(
    	RecordRestriction^ left,
    	RecordRestriction^ right
    )

JavaScript
View Source Request Example

    Gemstone.Data.Model.RecordRestriction.CombineAnd = function(left, right);

#### Parameters

left RecordRestriction
  Left operand.
right RecordRestriction
  Right operand.

#### Return Value

RecordRestriction
New combined record restriction.

## Remarks

If both parameters are null, result will be null. If one parameter is null and the other parameter is not, the non-null parameter will be returned. Equally, if the FilterExpression of both parameters are null, empty or only whitespace, then the result will be null. If one parameter has a filter expression that is null, empty or whitespace and the other parameter's filter expression is defined, then the parameter that has a filter expression will be returned.

## See Also

#### Reference

RecordRestriction Class
Gemstone.Data.Model Namespace