Interface ITermRelationCollection
Assembly: PnP.Core.dll
Syntax
public interface ITermRelationCollection : IDataModelCollection<ITermRelation>, IDataModelParent, IDataModelWithContext, IRequestableCollection, ISupportModules<ITermRelationCollection>
Methods
Declaration
ITermRelation Add(TermRelationType relationship, ITermSet targetSet, ITerm fromTerm = null)
Parameters
TermRelationType
relationship
Type of relation to be created. Possible values are: pin, reuse.
|
ITermSet
targetSet
The set where the relationship needs to be created.
|
ITerm
fromTerm
The term with which the relationship needs to be created.
|
Returns
Declaration
Task<ITermRelation> AddAsync(TermRelationType relationship, ITermSet targetSet, ITerm fromTerm = null)
Parameters
TermRelationType
relationship
Type of relation to be created. Possible values are: pin, reuse.
|
ITermSet
targetSet
The set where the relationship needs to be created.
|
ITerm
fromTerm
The term with which the relationship needs to be created.
|
Returns
Adds a new term relation via a batch request
Declaration
ITermRelation AddBatch(TermRelationType relationship, ITermSet targetSet, ITerm fromTerm = null)
Parameters
TermRelationType
relationship
Type of relation to be created. Possible values are: pin, reuse.
|
ITermSet
targetSet
The set where the relationship needs to be created.
|
ITerm
fromTerm
The term with which the relationship needs to be created.
|
Returns
Adds a new term relation via a batch request
Declaration
ITermRelation AddBatch(Batch batch, TermRelationType relationship, ITermSet targetSet, ITerm fromTerm = null)
Parameters
Batch
batch
Batch to use
|
TermRelationType
relationship
Type of relation to be created. Possible values are: pin, reuse.
|
ITermSet
targetSet
The set where the relationship needs to be created.
|
ITerm
fromTerm
The term with which the relationship needs to be created.
|
Returns
Adds a new term relation via a batch request
Declaration
Task<ITermRelation> AddBatchAsync(TermRelationType relationship, ITermSet targetSet, ITerm fromTerm = null)
Parameters
TermRelationType
relationship
Type of relation to be created. Possible values are: pin, reuse.
|
ITermSet
targetSet
The set where the relationship needs to be created.
|
ITerm
fromTerm
The term with which the relationship needs to be created.
|
Returns
Adds a new term relation via a batch request
Declaration
Task<ITermRelation> AddBatchAsync(Batch batch, TermRelationType relationship, ITermSet targetSet, ITerm fromTerm = null)
Parameters
Batch
batch
Batch to use
|
TermRelationType
relationship
Type of relation to be created. Possible values are: pin, reuse.
|
ITermSet
targetSet
The set where the relationship needs to be created.
|
ITerm
fromTerm
The term with which the relationship needs to be created.
|
Returns
Extension Methods