Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- prefix
Type: System.String
The prefix to search for.
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). |