ValueProviderCollection.GetKeysFromPrefix Method (String)

 

Gets the keys using the specified prefix.

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

Public Overridable Function GetKeysFromPrefix (
	prefix As String
) As IDictionary(Of StringString)

Parameters

prefix
Type: System.String

The prefix.

Return Value

Type: System.Collections.Generic.IDictionary(Of StringString)

They keys.

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”

Return to top
Show: