DataViewWebPart.SetFilter Method
Implements the SetFilter event handler.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub SetFilter ( _
sender As Object, _
setFilterEventArgs As SetFilterEventArgs _
)
'Usage
Dim instance As DataViewWebPart
Dim sender As Object
Dim setFilterEventArgs As SetFilterEventArgs
instance.SetFilter(sender, setFilterEventArgs)
public void SetFilter(
Object sender,
SetFilterEventArgs setFilterEventArgs
)
Parameters
sender
Type: System.ObjectObject sending the event.
setFilterEventArgs
Type: Microsoft.SharePoint.WebPartPages.Communication.SetFilterEventArgsArguments for the event, such as the filter expression.
Implements
IFilterConsumer.SetFilter(Object, SetFilterEventArgs)
Exceptions
Exception | Condition |
---|---|
[System.Exception] | Invalid filter string format was supplied. |
Remarks
The SetFilter method implements the SetFilter event handler. This event is sent by the provider to set the filter expression on the list.