Gets the values from the collection.

Namespace: DotNetNuke.Collections
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static IEnumerable<T> GetValues<T>(
	this NameValueCollection collection,
	string key,
	Func<string, T> converter
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetValues(Of T) ( 
	collection As NameValueCollection,
	key As String,
	converter As Func(Of String, T)
) As IEnumerable(Of T)

Parameters

collection
Type: System.Collections.Specialized..::..NameValueCollection
The collection.
key
Type: System..::..String
The key by which to get the values.
converter
Type: System..::..Func<(Of <(<'String, T>)>)>
A function to convert a value as an Object to a T instance.

Type Parameters

T
The type of the values to retrieve

Return Value

A sequence of T instances.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type NameValueCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see [b8020aae-374d-46a9-bcb7-8cc2390b93b6] or [175ce3ff-9bbf-4e64-8421-faeb81a0bb51].

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptioncollection or converter is null

See Also