Class StreamPick
A DataSource that returns a stream by the provided name. Usually this will be configured through [Params:SomeName]
The StreamPick DataSource is part of the Standard EAV Data Sources. It will pick a stream from In and pass that on to Out.
How to use with the VisualQuery
When using the VisualQuery you can just drag it into your query. This is what it usually looks like:
In this screenshot you can see:
- The DataSource which we are configuring
- The stream called
True
- The stream called
False
- The configuration which will resolve a token to
True
orFalse
and thereby pick the stream
Programming With The StreamPick DataSource
We recommend to use the VisualQuery where possible, as it's easier to understand and is identical for C# and JavaScript. It's also better because it separates data-retrieval from visualization.
Read also
Demo App and further links
You should find some examples in this demo App
History
- Introduced in EAV / 2sxc 10.26
API Documentation
Inheritance
System.Object
ToSic.Lib.Services.ServiceBase
ToSic.Lib.Services.ServiceBase<ToSic.Eav.DataSource.DataSourceBase.MyServices>
StreamPick
Implements
Inherited Members
Namespace: ToSic.Eav.DataSources
Assembly: ToSic.Eav.DataSources.dll
Syntax
[PublicApi_Stable_ForUseInYourCode]
[VisualQuery(NiceName = "Pick Stream", UiHint = "Choose a stream", Icon = "call_merge", Type = DataSourceType.Logic, NameId = "ToSic.Eav.DataSources.StreamPick, ToSic.Eav.DataSources", ConfigurationType = "67b19864-df6d-400b-9f37-f41f1dd69c4a", DynamicOut = false, DynamicIn = true, HelpLink = "https://r.2sxc.org/DsStreamPick")]
public sealed class StreamPick : DataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheInfo, ICacheKey, ICacheExpiring, ITimestamped, ICanPurgeListCache, IHasLog, IDataTarget, IAppIdentitySync, IDataSourceLinkable
Remarks
Introduced in 10.26
Properties
| Improve this Doc View SourceStreamName
The stream name to lookup.
Declaration
[Configuration(Fallback = "Default")]
public string StreamName { get; set; }
Property Value
Type | Description |
---|---|
System.String |