UrlPrefixCollection Class

Definition

A collection or URL prefixes

C#
public class UrlPrefixCollection : System.Collections.Generic.ICollection<Microsoft.AspNetCore.Server.HttpSys.UrlPrefix>, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Server.HttpSys.UrlPrefix>
Inheritance
UrlPrefixCollection
Implements

Properties

Count

Gets the number of elements contained in the ICollection<T>.

IsReadOnly

Gets a value that determines if this collection is readOnly.

Methods

Add(String)

Creates a UrlPrefix from the given string, and adds it to this collection.

Add(UrlPrefix)

Adds a UrlPrefix to this collection.

Clear()

Removes all items from the ICollection<T>.

Contains(UrlPrefix)

Determines whether the ICollection<T> contains a specific value.

CopyTo(UrlPrefix[], Int32)

Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

GetEnumerator()

Returns an enumerator that iterates through this collection.

Remove(String) System.Object.Remove(System.String)
Remove(UrlPrefix)

Removes the first occurrence of a specific object from the ICollection<T>.

Explicit Interface Implementations

Applies to

Product Versions
ASP.NET Core 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0