Freigeben über


HttpRouteCollection.Contains Method

Determines whether the collection contains a specific IHttpRoute.

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

Syntax

'Declaration
Public Overridable Function Contains ( _
    item As IHttpRoute _
) As Boolean
'Usage
Dim instance As HttpRouteCollection
Dim item As IHttpRoute
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public virtual bool Contains(
    IHttpRoute item
)
public:
virtual bool Contains(
    IHttpRoute^ item
)
abstract Contains : 
        item:IHttpRoute -> bool 
override Contains : 
        item:IHttpRoute -> bool 
public function Contains(
    item : IHttpRoute
) : boolean

Parameters

Return Value

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

Implements

ICollection<T>.Contains(T)

See Also

Reference

HttpRouteCollection Class

System.Web.Http Namespace