Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DictionaryValueProvider<TValue>.GetKeysFromPrefix Method

Gets the keys from the prefix.

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

public virtual IDictionary<string, string> GetKeysFromPrefix(
	string prefix
)

Parameters

prefix
Type: System.String

the prefix.

Return Value

Type: System.Collections.Generic.IDictionary<String, String>
The keys from the prefix.

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:
© 2015 Microsoft