Class MetadataTargets
Get Target Entities (metadata targets) of the Entities coming into this DataSource
Inheritance
System.Object
ToSic.Lib.Services.ServiceBase
ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
ToSic.Eav.DataSources.MetadataDataSourceBase
MetadataTargets
Implements
Inherited Members
Namespace: ToSic.Eav.DataSources
Assembly: ToSic.Eav.DataSources.dll
Syntax
[VisualQuery(NiceName = "Metadata Targets", UiHint = "Get the item's targets (if they are metadata)", Icon = "loyalty", Type = DataSourceType.Lookup, NameId = "afaf73d9-775c-4932-aebd-23e898b1643e", In = new string[]{"Default*"}, DynamicOut = false, ConfigurationType = "7dcd26eb-a70c-4a4f-bb3b-5bd5da304232", HelpLink = "https://r.2sxc.org/DsMetadataTargets")]
[InternalApi_DoNotUse_MayChangeWithoutNotice("WIP")]
public class MetadataTargets : MetadataDataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable
Remarks
- Added in v12.10
- Changed in v15.05 to use the immutable convention
Constructors
| Improve this Doc View SourceMetadataTargets(IAppStates, DataSourceBase.MyServices)
Declaration
public MetadataTargets(IAppStates appStates, DataSourceBase.MyServices services)
Parameters
Type | Name | Description |
---|---|---|
ToSic.Eav.Apps.IAppStates | appStates | |
ToSic.Eav.DataSource.DataSourceBase.MyServices | services |
Properties
| Improve this Doc View SourceContentTypeName
Optional TypeName restrictions to only get Targets of this Content Type.
Declaration
[Configuration]
public override string ContentTypeName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ToSic.Eav.DataSources.MetadataDataSourceBase.ContentTypeName
|
Improve this Doc
View Source
FilterDuplicates
Declaration
[Configuration(Fallback = true)]
public bool FilterDuplicates { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
Defaults to true
Methods
| Improve this Doc View SourceSpecificGet(IImmutableList<IEntity>, String)
Declaration
protected override IEnumerable<IEntity> SpecificGet(IImmutableList<IEntity> originals, string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Immutable.IImmutableList<IEntity> | originals | |
System.String | typeName |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IEntity> |
Overrides
ToSic.Eav.DataSources.MetadataDataSourceBase.SpecificGet(System.Collections.Immutable.IImmutableList<ToSic.Eav.Data.IEntity>, System.String)