Contribution Class

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.

An individual contribution made by an extension

C#
[System.Runtime.Serialization.DataContract]
public class Contribution : Microsoft.VisualStudio.Services.ExtensionManagement.WebApi.ContributionBase
Inheritance
Contribution
Attributes

Constructors

Properties

Constraints

List of constraints (filters) that should be applied to the availability of this contribution

Description

Description of the contribution/type

(Inherited from ContributionBase)
Id

Fully qualified identifier of the contribution/type

(Inherited from ContributionBase)
Includes

Includes is a set of contributions that should have this contribution included in their targets list.

Properties

Properties/attributes of this contribution

RestrictedTo

List of demanded claims in order for the user to see this contribution (like anonymous, public, member...).

Targets

The ids of the contribution(s) that this contribution targets. (parent contributions)

Type

Id of the Contribution Type

VisibleTo

VisibleTo can be used to restrict whom can reference a given contribution/type. This value should be a list of publishers or extensions access is restricted too.

Examples: "ms" - Means only the "ms" publisher can reference this. "ms.vss-web" - Means only the "vss-web" extension from the "ms" publisher can reference this.

(Inherited from ContributionBase)

Methods

Extension Methods

GetProperty<T>(Contribution, String, T, Boolean)

Get a property value for the given contribution

GetPropertyRawValue(Contribution, String)

Gets the value of a property in its raw form - with values converted from JObject/JToken into strings, numbers, arrays, dictionaries.

IsOfType(Contribution, String)

Is the contribution's type the specified contribution type

IsTargeting(Contribution, String)

Is the contribution targeting the specified contribution id

Applies to

Prodotto Versioni
Azure DevOps Services .NET SDK preview, latest