Compartilhar via


ConditionalScope Constructor (ClientRuntimeContext, Expression<Func<Boolean>>)

Initializes a new instance of the ConditionalScope class with the specified client runtime context and conditional expression.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight.Runtime (in Microsoft.SharePoint.Client.Silverlight.Runtime.dll);  Microsoft.SharePoint.Client.Runtime (in Microsoft.SharePoint.Client.Runtime.dll)

Syntax

'Declaration
Public Sub New ( _
    context As ClientRuntimeContext, _
    condition As Expression(Of Func(Of Boolean)) _
)
'Usage
Dim context As ClientRuntimeContext
Dim condition As Expression(Of Func(Of Boolean))

Dim instance As New ConditionalScope(context, _
    condition)
public ConditionalScope(
    ClientRuntimeContext context,
    Expression<Func<bool>> condition
)

Parameters

  • condition
    Type: System.Linq.Expressions.Expression<Func<Boolean>>

    A Expression<Func<Boolean>> object that represents a conditional expression that is evaluated on the server that decides whether the code block should be executed.

Remarks

The constructor allows the query action to be executed only inside the conditional scope.

See Also

Reference

ConditionalScope Class

ConditionalScope Members

ConditionalScope Overload

Microsoft.SharePoint.Client Namespace