AzureDevOpsPullRequestSettings.

UsingAzurePipelinesOAuthToken(bool) Method

Summary

Constructs the settings object using the access token provided by Azure Pipelines.

Syntax

public static AzureDevOpsPullRequestSettings UsingAzurePipelinesOAuthToken(bool throwExceptionIfVariablesDontExist)

Parameters

Name Type Description
throwExceptionIfVariablesDontExist bool Value indicating whether an exception should be thrown if required environment variables could not be found.

Return Value

Type Description
AzureDevOpsPullRequestSettings The instance of AzureDevOpsPullRequestSettings class. Returns null if variables don't exist and throwExceptionIfVariablesDontExist is set to false.