HttpClientExtensions.PatchAsync Method (HttpClient, String, HttpContent)
Namespace: Microsoft.VisualStudio.Services.WebApi
Assembly: Microsoft.VisualStudio.Services.WebApi (in Microsoft.VisualStudio.Services.WebApi.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function PatchAsync ( _
client As HttpClient, _
uri As String, _
content As HttpContent _
) As Task(Of HttpResponseMessage)
public static Task<HttpResponseMessage> PatchAsync(
this HttpClient client,
string uri,
HttpContent content
)
[ExtensionAttribute]
public:
static Task<HttpResponseMessage^>^ PatchAsync(
HttpClient^ client,
String^ uri,
HttpContent^ content
)
static member PatchAsync :
client:HttpClient *
uri:string *
content:HttpContent -> Task<HttpResponseMessage>
public static function PatchAsync(
client : HttpClient,
uri : String,
content : HttpContent
) : Task<HttpResponseMessage>
Parameters
- client
Type: System.Net.Http.HttpClient
- uri
Type: System.String
- content
Type: System.Net.Http.HttpContent
Return Value
Type: System.Threading.Tasks.Task<HttpResponseMessage>
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpClient. 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.