Поделиться через


UriExtensions.AddMultiple<T> Method (NameValueCollection, String, IEnumerable<T>, Func<T, String>)

Namespace:  Microsoft.VisualStudio.Services.Common
Assembly:  Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub AddMultiple(Of T) ( _
    collection As NameValueCollection, _
    name As String, _
    values As IEnumerable(Of T), _
    convert As Func(Of T, String) _
)
public static void AddMultiple<T>(
    this NameValueCollection collection,
    string name,
    IEnumerable<T> values,
    Func<T, string> convert
)
[ExtensionAttribute]
public:
generic<typename T>
static void AddMultiple(
    NameValueCollection^ collection, 
    String^ name, 
    IEnumerable<T>^ values, 
    Func<T, String^>^ convert
)
static member AddMultiple : 
        collection:NameValueCollection * 
        name:string * 
        values:IEnumerable<'T> * 
        convert:Func<'T, string> -> unit
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

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 Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

UriExtensions Class

AddMultiple Overload

Microsoft.VisualStudio.Services.Common Namespace