BaseRequestExtensions.WithMaxRedirects<T>(T, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the maximum number of redirects to the default Redirect Middleware Handler for this request. This only works with the default Redirect Middleware Handler. If you use a custom Redirect Middleware Handler, you have to handle it's retrieval in your implementation.
public static T WithMaxRedirects<T> (this T baseRequest, int maxRedirects) where T : Microsoft.Graph.IBaseRequest;
static member WithMaxRedirects : 'T * int -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithMaxRedirects(Of T As IBaseRequest) (baseRequest As T, maxRedirects As Integer) As T
Type Parameters
- T
Parameters
- baseRequest
- T
The BaseRequest for the request.
- maxRedirects
- Int32
Maximum number of redirects allowed for the request
Returns
T