Table of Contents

Class TargetedFields

Namespace
JsonApiDotNetCore.Resources
Assembly
JsonApiDotNetCore.dll

Container to register which resource fields (attributes and relationships) are targeted by a request.

[PublicAPI]
public sealed class TargetedFields : ITargetedFields
Inheritance
TargetedFields
Implements
Inherited Members

Properties

Attributes

public HashSet<AttrAttribute> Attributes { get; }

Property Value

HashSet<AttrAttribute>

Relationships

public HashSet<RelationshipAttribute> Relationships { get; }

Property Value

HashSet<RelationshipAttribute>

Methods

Clear()

public void Clear()

CopyFrom(ITargetedFields)

Performs a shallow copy.

public void CopyFrom(ITargetedFields other)

Parameters

other ITargetedFields