Search
Preparing search index...
The search index is not available
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
fm
icelink
DataChannelCollection
Class DataChannelCollection
A collection of data channels.
Hierarchy
Collection
<
DataChannel
,
DataChannelCollection
>
DataChannelCollection
Index
Constructors
constructor
Methods
add
add
Many
add
Success
any
array
From
List
contains
create
Collection
first
first
OrDefault
for
Each
get
Count
get
Type
String
get
Value
get
Values
last
last
OrDefault
remove
remove
All
remove
First
remove
Last
remove
Many
remove
Success
replace
set
Value
set
Values
single
single
OrDefault
value
At
value
AtOr
Default
where
Constructors
constructor
new
Data
Channel
Collection
(
)
:
DataChannelCollection
Returns
DataChannelCollection
Methods
add
add
(
value
:
DataChannel
)
:
boolean
Adds a value.
Parameters
value:
DataChannel
The value.
Returns
boolean
add
Many
add
Many
(
values
:
DataChannel
[]
)
:
boolean
Adds some values.
Parameters
values:
DataChannel
[]
The values.
Returns
boolean
Protected
add
Success
add
Success
(
value
:
DataChannel
)
:
void
Invoked when an element is added to the collection.
Parameters
value:
DataChannel
The value.
Returns
void
any
any
(
predicate
:
IFunction1
<
DataChannel
,
boolean
>
)
:
boolean
any
(
)
:
boolean
Determined whether the collection contains at least one value that matches the specified predicate.
Parameters
predicate:
IFunction1
<
DataChannel
,
boolean
>
The predicate.
Returns
boolean
Determined whether the collection contains at least one value.
Returns
boolean
Protected
array
From
List
array
From
List
(
list
:
Array
<
DataChannel
>
)
:
DataChannel
[]
Creates an array from a list.
Parameters
list:
Array
<
DataChannel
>
The list.
Returns
DataChannel
[]
contains
contains
(
value
:
DataChannel
)
:
boolean
Determines whether the collection contains a value.
Parameters
value:
DataChannel
The value.
Returns
boolean
Protected
create
Collection
create
Collection
(
)
:
DataChannelCollection
Creates a collection.
Returns
DataChannelCollection
first
first
(
predicate
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
first
(
)
:
DataChannel
Gets the first value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
DataChannel
,
boolean
>
The predicate.
Returns
DataChannel
Gets the first value. Throws an exception if there are no values in the collection.
Returns
DataChannel
first
OrDefault
first
OrDefault
(
)
:
DataChannel
first
OrDefault
(
predicate
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
Gets the first value. Returns a default value if there are no values in the collection.
Returns
DataChannel
Gets the first value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
DataChannel
,
boolean
>
The predicate.
Returns
DataChannel
for
Each
for
Each
(
callback
:
IAction2
<
DataChannel
,
number
>
)
:
void
Executes a callback function once per value.
Parameters
callback:
IAction2
<
DataChannel
,
number
>
The callback to execute.
Returns
void
get
Count
get
Count
(
)
:
number
Gets the count.
Returns
number
get
Type
String
get
Type
String
(
)
:
string
Returns
string
get
Value
get
Value
(
)
:
DataChannel
Gets the value.
Returns
DataChannel
get
Values
get
Values
(
)
:
DataChannel
[]
Gets the values.
Returns
DataChannel
[]
last
last
(
predicate
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
last
(
)
:
DataChannel
Gets the last value that matches the specified predicate. Throws an exception if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
DataChannel
,
boolean
>
The predicate.
Returns
DataChannel
Gets the last value. Throws an exception if there are no values in the collection.
Returns
DataChannel
last
OrDefault
last
OrDefault
(
predicate
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
last
OrDefault
(
)
:
DataChannel
Gets the last value that matches the specified predicate. Returns a default value if there are no such values in the collection.
Parameters
predicate:
IFunction1
<
DataChannel
,
boolean
>
The predicate.
Returns
DataChannel
Gets the last value. Returns a default value if there are no values in the collection.
Returns
DataChannel
remove
remove
(
value
:
DataChannel
)
:
boolean
Removes a value.
Parameters
value:
DataChannel
The value.
Returns
boolean
remove
All
remove
All
(
)
:
void
Removes all values.
Returns
void
remove
First
remove
First
(
condition
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
remove
First
(
)
:
DataChannel
Removes the first value that matches a given condition.
Parameters
condition:
IFunction1
<
DataChannel
,
boolean
>
Returns
DataChannel
Removes the first value.
Returns
DataChannel
remove
Last
remove
Last
(
)
:
DataChannel
remove
Last
(
condition
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
Removes the last value.
Returns
DataChannel
Removes the last value that matches a given condition.
Parameters
condition:
IFunction1
<
DataChannel
,
boolean
>
Returns
DataChannel
remove
Many
remove
Many
(
values
:
DataChannel
[]
)
:
boolean
Removes some values.
Parameters
values:
DataChannel
[]
The values.
Returns
boolean
Protected
remove
Success
remove
Success
(
value
:
DataChannel
)
:
void
Invoked when an element is removed from the collection.
Parameters
value:
DataChannel
The value.
Returns
void
replace
replace
(
values
:
DataChannel
[]
)
:
void
Replaces the collection with a new set of values.
Parameters
values:
DataChannel
[]
The values.
Returns
void
set
Value
set
Value
(
value
:
DataChannel
)
:
void
Sets the value.
Parameters
value:
DataChannel
Returns
void
set
Values
set
Values
(
value
:
DataChannel
[]
)
:
void
Sets the values.
Parameters
value:
DataChannel
[]
Returns
void
single
single
(
predicate
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
single
(
)
:
DataChannel
Gets the only value that matches the specified predicate. Throws an exception if there are no values or more than one value in the collection.
Parameters
predicate:
IFunction1
<
DataChannel
,
boolean
>
Returns
DataChannel
Gets the only value. Throws an exception if there are no values or more than one value in the collection.
Returns
DataChannel
single
OrDefault
single
OrDefault
(
)
:
DataChannel
single
OrDefault
(
predicate
:
IFunction1
<
DataChannel
,
boolean
>
)
:
DataChannel
Gets the only value. Returns a default value if there are no values or more than one value in the collection.
Returns
DataChannel
Gets the only value that matches the specified predicate. Returns a default value if there are no values or more than one value in the collection.
Parameters
predicate:
IFunction1
<
DataChannel
,
boolean
>
Returns
DataChannel
value
At
value
At
(
index
:
number
)
:
DataChannel
Gets the value at the specified index. Throws an exception if a value does not exist at that index.
Parameters
index:
number
The index.
Returns
DataChannel
value
AtOr
Default
value
AtOr
Default
(
index
:
number
)
:
DataChannel
Gets the value at the specified index. Returns a default value if a value does not exist at that index.
Parameters
index:
number
The index.
Returns
DataChannel
where
where
(
predicate
:
IFunction2
<
DataChannel
,
number
,
boolean
>
)
:
DataChannelCollection
Creates a new collection with values that match the specified predicate.
Parameters
predicate:
IFunction2
<
DataChannel
,
number
,
boolean
>
The predicate.
Returns
DataChannelCollection
Data
Channel
Collection
constructor
add
add
Many
add
Success
any
array
From
List
contains
create
Collection
first
first
OrDefault
for
Each
get
Count
get
Type
String
get
Value
get
Values
last
last
OrDefault
remove
remove
All
remove
First
remove
Last
remove
Many
remove
Success
replace
set
Value
set
Values
single
single
OrDefault
value
At
value
AtOr
Default
where