TagDirectiveCollection Class
Collection of TagDirective.
public class TagDirectiveCollection : KeyedCollection<string, TagDirective>- Inheritance
KeyedCollection<string, TagDirective>TagDirectiveCollection
Constructors
| Name | Description |
|---|---|
| TagDirectiveCollection() | Initializes a new instance of the TagDirectiveCollection class. |
| TagDirectiveCollection(IEnumerable<TagDirective>) | Initializes a new instance of the TagDirectiveCollection class. |
TagDirectiveCollection overloads
TagDirectiveCollection()
TagDirectiveCollection.csInitializes a new instance of the TagDirectiveCollection class.
public TagDirectiveCollection()TagDirectiveCollection(IEnumerable<TagDirective>)
TagDirectiveCollection.csInitializes a new instance of the TagDirectiveCollection class.
public TagDirectiveCollection(IEnumerable<TagDirective> tagDirectives)Parameters
tagDirectivesIEnumerable<TagDirective>- Initial content of the collection.
Methods
| Name | Description |
|---|---|
| Contains(TagDirective) | Gets a value indicating whether the collection contains a directive with the same handle |
| GetKeyForItem(TagDirective) | When implemented in a derived class, extracts the key from the specified element. |
Contains(TagDirective)
TagDirectiveCollection.csGets a value indicating whether the collection contains a directive with the same handle
public new bool Contains(TagDirective directive)GetKeyForItem(TagDirective)
TagDirectiveCollection.csWhen implemented in a derived class, extracts the key from the specified element.
protected override string GetKeyForItem(TagDirective item)Parameters
itemTagDirective- The element from which to extract the key.
Returns
string The key for the specified element.