Partager via


HttpRouteCollection.ContainsKey Method

Determines whether the collection contains an element with the specified key.

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

Syntax

'Declaration
Public Overridable Function ContainsKey ( _
    name As String _
) As Boolean
'Usage
Dim instance As HttpRouteCollection
Dim name As String
Dim returnValue As Boolean

returnValue = instance.ContainsKey(name)
public virtual bool ContainsKey(
    string name
)
public:
virtual bool ContainsKey(
    String^ name
)
abstract ContainsKey : 
        name:string -> bool 
override ContainsKey : 
        name:string -> bool 
public function ContainsKey(
    name : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the collection contains an element with the key; otherwise, false.

See Also

Reference

HttpRouteCollection Class

System.Web.Http Namespace