Compartilhar via


BdcAccessor.Validator Delegate

Used to configure a BdcAccessor object in order to filter which external content types are shown in an EntityPicker object. For more information, contact us.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Delegate Function Validator ( _
    metadataObject As IMetadataObject _
) As Boolean
'Usage
Dim instance As New Validator(AddressOf HandlerMethod)
public delegate bool Validator(
    IMetadataObject metadataObject
)

Parameters

Return Value

Type: System.Boolean

Remarks

If a function with this signature returns true for a given external content type, that external content type will be shown in the EntityPicker. If the function returns False, the corresponding external content type will not be shown in the EntityPicker. Multiple Validator functions can be used with a single BdcAccessor, in which case all Validator functions must return true for a given external content type in order for that external content type to be shown in the EntityPicker.

See Also

Reference

Microsoft.SharePoint.WebControls Namespace