Export (0) Print
Expand All

NameValueCollectionValueProvider.GetKeysFromPrefix Method

Gets the keys using the specified prefix.

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

'Declaration
Public Overridable Function GetKeysFromPrefix ( _
	prefix As String _
) As IDictionary(Of String, String)
'Usage
Dim instance As NameValueCollectionValueProvider 
Dim prefix As String 
Dim returnValue As IDictionary(Of String, String)

returnValue = instance.GetKeysFromPrefix(prefix)

Parameters

prefix
Type: System.String

The prefix.

Return Value

Type: System.Collections.Generic.IDictionary(Of String, String)
They keys.

Implements

IEnumerableValueProvider.GetKeysFromPrefix(String)

GetKeysFromPrefix(“xyz") will return the following:

  1. "abc" and "xyz.abc" from "xyz.abc"

  2. "hello" and "xyz.hello" from "xyz.hello"

  3. Nothing from "something.other"

  4. "abc" and "xyz[abc]" from “xyz[abc].123”

Show:
© 2014 Microsoft