WebServiceRequestUtility.WithAcceptedStatusCodes<TWebServiceRequest> method (1 of 2)

Sets the AcceptedStatusCodes of the WebServiceRequest.

public static TWebServiceRequest WithAcceptedStatusCodes<TWebServiceRequest>(
    this TWebServiceRequest request, params HttpStatusCode[] acceptedStatusCodes)
    where TWebServiceRequest : WebServiceRequest

See Also


WebServiceRequestUtility.WithAcceptedStatusCodes<TWebServiceRequest> method (2 of 2)

Sets the AcceptedStatusCodes of the WebServiceRequest.

public static TWebServiceRequest WithAcceptedStatusCodes<TWebServiceRequest>(
    this TWebServiceRequest request, IEnumerable<HttpStatusCode>? acceptedStatusCodes)
    where TWebServiceRequest : WebServiceRequest

See Also