Partager via


GlobalFilterCollection.Contains Method

Determines whether a filter is in the global filter collection.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Function Contains ( _
    filter As Object _
) As Boolean
'Usage
Dim instance As GlobalFilterCollection
Dim filter As Object
Dim returnValue As Boolean

returnValue = instance.Contains(filter)
public bool Contains(
    Object filter
)
public:
bool Contains(
    Object^ filter
)
public function Contains(
    filter : Object
) : boolean

Parameters

Return Value

Type: System.Boolean
true if filter is found in the global filter collection; otherwise, false.

See Also

Reference

GlobalFilterCollection Class

System.Web.Mvc Namespace

Other Resources

Filtering in ASP.NET MVC