ApiResourceVersionExtensions.AddApiResourceVersionValues Method
Namespace: Microsoft.VisualStudio.Services.WebApi
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Sub AddApiResourceVersionValues ( _
headerValues As ICollection(Of NameValueHeaderValue), _
version As ApiResourceVersion _
)
public static void AddApiResourceVersionValues(
this ICollection<NameValueHeaderValue> headerValues,
ApiResourceVersion version
)
[ExtensionAttribute]
public:
static void AddApiResourceVersionValues(
ICollection<NameValueHeaderValue^>^ headerValues,
ApiResourceVersion^ version
)
static member AddApiResourceVersionValues :
headerValues:ICollection<NameValueHeaderValue> *
version:ApiResourceVersion -> unit
public static function AddApiResourceVersionValues(
headerValues : ICollection<NameValueHeaderValue>,
version : ApiResourceVersion
)
Parameters
- headerValues
Type: System.Collections.Generic.ICollection<NameValueHeaderValue>
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type ICollection<NameValueHeaderValue>. 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.