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.152 -- Release Build+3b6829d9645b31d6fc0c4a03e68df9622cb42dfb
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