Table of Contents

ValidateOptions Method

Definition

ValidateOptions()

Determines whether the public read-write properties of this instance are in a valid state.

public void ValidateOptions()

Remarks

This method is expected to throw exceptions when one or more conditions fails to be in a valid state.

Exceptions

InvalidOperationException

HeaderName cannot be null, empty or consist only of white-space characters - or - ResponseHandler cannot be null - or - AllowedKeys cannot be null - or - GenericClientStatusCode is not within the allowed range of an HTTP Client Error Status Code (400-499).