HttpClientExtensions.PatchAsync Method (HttpClient, String, HttpContent, CancellationToken)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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


<ExtensionAttribute> _
Public Shared Function PatchAsync ( _
    client As HttpClient, _
    uri As String, _
    content As HttpContent, _
    cancellationToken As CancellationToken _
) As Task(Of HttpResponseMessage)
public static Task<HttpResponseMessage> PatchAsync(
    this HttpClient client,
    string uri,
    HttpContent content,
    CancellationToken cancellationToken
static Task<HttpResponseMessage^>^ PatchAsync(
    HttpClient^ client, 
    String^ uri, 
    HttpContent^ content, 
    CancellationToken cancellationToken
static member PatchAsync : 
        client:HttpClient * 
        uri:string * 
        content:HttpContent * 
        cancellationToken:CancellationToken -> Task<HttpResponseMessage> 
public static function PatchAsync(
    client : HttpClient, 
    uri : String, 
    content : HttpContent, 
    cancellationToken : CancellationToken
) : Task<HttpResponseMessage>


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

See Also


HttpClientExtensions Class

PatchAsync Overload

Microsoft.VisualStudio.Services.Common Namespace