Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
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). |