Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient

Methods

  • Set the state of a feature at a specific scope

    Parameters

    • feature: ContributedFeatureState

      Posted feature state object. Should specify the effective value.

    • featureId: string

      Contribution id of the feature

    • userScope: string

      User-Scope at which to set the value. Should be "me" for the current user or "host" for all users.

    • scopeName: string

      Scope at which to get the feature setting for (e.g. "project" or "team")

    • scopeValue: string

      Value of the scope (e.g. the project or team id)

    • Optionalreason: string

      Reason for changing the state

    • OptionalreasonCode: string

      Short reason code

    Returns Promise<ContributedFeatureState>