Partager via


DictionaryValueProvider<TValue>.ContainsPrefix Method

Determines whether the collection contains the specified prefix.

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

Syntax

'Declaration
Public Overridable Function ContainsPrefix ( _
    prefix As String _
) As Boolean
public virtual bool ContainsPrefix(
    string prefix
)
public:
virtual bool ContainsPrefix(
    String^ prefix
)

Parameters

Return Value

Type: System.Boolean
true if the collection contains the specified prefix; otherwise, false.

Implements

IValueProvider.ContainsPrefix(String)

Exceptions

Exception Condition
ArgumentNullException

The prefix parameter is null reference (Nothing in Visual Basic).

See Also

Reference

DictionaryValueProvider<TValue> Class

System.Web.Mvc Namespace