Summary
Defines a
ITask that determines if a specific item or items exist in a collection.
- Namespace
- NBuildKit
.MsBuild .Tasks .Groups - Base Types
-
- Task
- BaseTask
graph TD
Base0["BaseTask"]-->Type
click Base0 "/nBuildKit.MsBuild/api/NBuildKit.MsBuild.Tasks.Core/BaseTask"
Base1["Task"]-->Base0
Type["IsInCollection"]
class Type type-node
Syntax
[SuppressMessage("Microsoft.Naming", "CA1711:IdentifiersShouldNotHaveIncorrectSuffix", Justification = "Task name indicates that it finds out if an element is in a collection.")]
public sealed class IsInCollection : BaseTask
Attributes
| Type | Description |
|---|---|
| Suppress |
Properties
| Name | Value | Summary |
|---|---|---|
| Collection | ITaskItem[] |
Gets or sets the collection.
|
| ErrorInformation | ITaskItem[] |
Gets or sets the collection containing the error codes for the task.
Inherited from BaseTask
|
| IsInList | bool |
Gets or sets a value indicating whether the given item or items are present in the collection.
|
| Item | ITaskItem |
Gets or sets the item for which the collection should be checked.
|
| Items | ITaskItem[] |
Gets or sets a collection of items for which the collection should be checked.
|
Methods
| Name | Value | Summary |
|---|---|---|
| ErrorCodeById |
string |
Returns the error code for the given ID.
Inherited from BaseTask
|
| Execute |
bool | |
| GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
| GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
| GetAbsolutePath |
string |
Returns the absolute path for the given path item.
Inherited from BaseTask
|
| Verbosity |
string |
Gets the verbosity that the current MsBuild instance is running at.
Inherited from BaseTask
static
|