Modifier

Partager via


Rest.PutAsync Method

Definition

Overloads

PutAsync(String, Byte[], Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean, CancellationToken)

Rest PUT.

PutAsync(String, Byte[], Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean)

Rest PUT.

PutAsync(String, String, Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean)

Rest PUT.

PutAsync(String, String, Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean, CancellationToken)

Rest PUT.

PutAsync(String, Byte[], Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean, CancellationToken)

Rest PUT.

public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response> PutAsync (string query, byte[] bodyData, System.Collections.Generic.Dictionary<string,string> headers = default, int timeout = -1, bool readResponseData = false, UnityEngine.Networking.CertificateHandler certificateHandler = default, bool disposeCertificateHandlerOnDispose = true, System.Threading.CancellationToken cancellationToken = default);
static member PutAsync : string * byte[] * System.Collections.Generic.Dictionary<string, string> * int * bool * UnityEngine.Networking.CertificateHandler * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response>
Public Shared Function PutAsync (query As String, bodyData As Byte(), Optional headers As Dictionary(Of String, String) = Nothing, Optional timeout As Integer = -1, Optional readResponseData As Boolean = false, Optional certificateHandler As CertificateHandler = Nothing, Optional disposeCertificateHandlerOnDispose As Boolean = true, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

query
String

Finalized Endpoint Query with parameters.

bodyData
Byte[]

Data to be submitted.

headers
Dictionary<String,String>

Optional header information for the request.

timeout
Int32

Optional time in seconds before request expires.

readResponseData
Boolean

Optional bool. If its true, response data will be read from web request download handler.

certificateHandler
UnityEngine.Networking.CertificateHandler

Optional certificate handler for custom certificate verification

disposeCertificateHandlerOnDispose
Boolean

Optional bool. If true and certificateHandler is not null, certificateHandler will be disposed, when the underlying UnityWebRequest is disposed.

cancellationToken
CancellationToken

Returns

The response data.

Applies to

PutAsync(String, Byte[], Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean)

Rest PUT.

public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response> PutAsync (string query, byte[] bodyData, System.Collections.Generic.Dictionary<string,string> headers = default, int timeout = -1, bool readResponseData = false, UnityEngine.Networking.CertificateHandler certificateHandler = default, bool disposeCertificateHandlerOnDispose = true);
static member PutAsync : string * byte[] * System.Collections.Generic.Dictionary<string, string> * int * bool * UnityEngine.Networking.CertificateHandler * bool -> System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response>
Public Shared Function PutAsync (query As String, bodyData As Byte(), Optional headers As Dictionary(Of String, String) = Nothing, Optional timeout As Integer = -1, Optional readResponseData As Boolean = false, Optional certificateHandler As CertificateHandler = Nothing, Optional disposeCertificateHandlerOnDispose As Boolean = true) As Task(Of Response)

Parameters

query
String

Finalized Endpoint Query with parameters.

bodyData
Byte[]

Data to be submitted.

headers
Dictionary<String,String>

Optional header information for the request.

timeout
Int32

Optional time in seconds before request expires.

readResponseData
Boolean

Optional bool. If its true, response data will be read from web request download handler.

certificateHandler
UnityEngine.Networking.CertificateHandler

Optional certificate handler for custom certificate verification

disposeCertificateHandlerOnDispose
Boolean

Optional bool. If true and certificateHandler is not null, certificateHandler will be disposed, when the underlying UnityWebRequest is disposed.

Returns

The response data.

Applies to

PutAsync(String, String, Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean)

Rest PUT.

public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response> PutAsync (string query, string jsonData, System.Collections.Generic.Dictionary<string,string> headers = default, int timeout = -1, bool readResponseData = false, UnityEngine.Networking.CertificateHandler certificateHandler = default, bool disposeCertificateHandlerOnDispose = true);
static member PutAsync : string * string * System.Collections.Generic.Dictionary<string, string> * int * bool * UnityEngine.Networking.CertificateHandler * bool -> System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response>
Public Shared Function PutAsync (query As String, jsonData As String, Optional headers As Dictionary(Of String, String) = Nothing, Optional timeout As Integer = -1, Optional readResponseData As Boolean = false, Optional certificateHandler As CertificateHandler = Nothing, Optional disposeCertificateHandlerOnDispose As Boolean = true) As Task(Of Response)

Parameters

query
String

Finalized Endpoint Query with parameters.

jsonData
String

Data to be submitted.

headers
Dictionary<String,String>

Optional header information for the request.

timeout
Int32

Optional time in seconds before request expires.

readResponseData
Boolean

Optional bool. If its true, response data will be read from web request download handler.

certificateHandler
UnityEngine.Networking.CertificateHandler

Optional certificate handler for custom certificate verification

disposeCertificateHandlerOnDispose
Boolean

Optional bool. If true and certificateHandler is not null, certificateHandler will be disposed, when the underlying UnityWebRequest is disposed.

Returns

The response data.

Applies to

PutAsync(String, String, Dictionary<String,String>, Int32, Boolean, CertificateHandler, Boolean, CancellationToken)

Rest PUT.

public static System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response> PutAsync (string query, string jsonData, System.Collections.Generic.Dictionary<string,string> headers = default, int timeout = -1, bool readResponseData = false, UnityEngine.Networking.CertificateHandler certificateHandler = default, bool disposeCertificateHandlerOnDispose = true, System.Threading.CancellationToken cancellationToken = default);
static member PutAsync : string * string * System.Collections.Generic.Dictionary<string, string> * int * bool * UnityEngine.Networking.CertificateHandler * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.MixedReality.Toolkit.Utilities.Response>
Public Shared Function PutAsync (query As String, jsonData As String, Optional headers As Dictionary(Of String, String) = Nothing, Optional timeout As Integer = -1, Optional readResponseData As Boolean = false, Optional certificateHandler As CertificateHandler = Nothing, Optional disposeCertificateHandlerOnDispose As Boolean = true, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

query
String

Finalized Endpoint Query with parameters.

jsonData
String

Data to be submitted.

headers
Dictionary<String,String>

Optional header information for the request.

timeout
Int32

Optional time in seconds before request expires.

readResponseData
Boolean

Optional bool. If its true, response data will be read from web request download handler.

certificateHandler
UnityEngine.Networking.CertificateHandler

Optional certificate handler for custom certificate verification

disposeCertificateHandlerOnDispose
Boolean

Optional bool. If true and certificateHandler is not null, certificateHandler will be disposed, when the underlying UnityWebRequest is disposed.

cancellationToken
CancellationToken

Returns

The response data.

Applies to