Skip to content

RestClient.Put method (1 of 2)

Sends an entity via PUT request.

public static Task<HttpResponseMessage> Put(Uri uri, object entity, IAuthentication? authentication)
parameter description
uri target endpoint
entity entity instance
authentication authentication

Exceptions

exception condition
ArgumentNullException

See Also


RestClient.Put method (2 of 2)

Sends a file-media PUT request.

public static Task<HttpResponseMessage> Put(Uri uri, byte[] data, string fileName, 
    IAuthentication? authentication)
parameter description
uri target endpoint
data file contents
fileName file name
authentication authentication

Exceptions

exception condition
ArgumentNullException

See Also