DictionaryValueProvider<TValue>.GetKeysFromPrefix Method (String)
Gets the keys from the prefix.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
public virtual IDictionary<string, string> GetKeysFromPrefix(
string prefix
)
public:
virtual IDictionary<String^, String^>^ GetKeysFromPrefix(
String^ prefix
)
abstract GetKeysFromPrefix :
prefix:string -> IDictionary<string, string>
override GetKeysFromPrefix :
prefix:string -> IDictionary<string, string>
Public Overridable Function GetKeysFromPrefix (
prefix As String
) As IDictionary(Of String, String)
Parameters
prefix
Type: System.Stringthe prefix.
Return Value
Type: System.Collections.Generic.IDictionary<String, String>
The keys from the prefix.
Implements
IEnumerableValueProvider.GetKeysFromPrefix(String)
Remarks
GetKeysFromPrefix(“xyz") will return the following:
"abc" and "xyz.abc" from "xyz.abc"
"hello" and "xyz.hello" from "xyz.hello"
Nothing from "something.other"
"abc" and "xyz[abc]" from “xyz[abc].123”
See Also
DictionaryValueProvider<TValue> Class
System.Web.Mvc Namespace
Return to top