Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ValueProviderCollection.GetKeysFromPrefix Method

Gets the keys using the specified 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.

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”

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.