UriExtensions.AddMultiple Method (NameValueCollection, String, IEnumerable<String>)
Namespace: Microsoft.VisualStudio.Services.Common
Assembly: Microsoft.VisualStudio.Services.Common (in Microsoft.VisualStudio.Services.Common.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub AddMultiple ( _
collection As NameValueCollection, _
name As String, _
values As IEnumerable(Of String) _
)
public static void AddMultiple(
this NameValueCollection collection,
string name,
IEnumerable<string> values
)
[ExtensionAttribute]
public:
static void AddMultiple(
NameValueCollection^ collection,
String^ name,
IEnumerable<String^>^ values
)
static member AddMultiple :
collection:NameValueCollection *
name:string *
values:IEnumerable<string> -> unit
public static function AddMultiple(
collection : NameValueCollection,
name : String,
values : IEnumerable<String>
)
Parameters
- collection
Type: System.Collections.Specialized.NameValueCollection
- name
Type: System.String
- values
Type: System.Collections.Generic.IEnumerable<String>
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.