UrlPrefixCollection 类

定义

集合或 URL 前缀

public ref class UrlPrefixCollection : System::Collections::Generic::ICollection<Microsoft::AspNetCore::Server::HttpSys::UrlPrefix ^>, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Server::HttpSys::UrlPrefix ^>
public class UrlPrefixCollection : System.Collections.Generic.ICollection<Microsoft.AspNetCore.Server.HttpSys.UrlPrefix>, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Server.HttpSys.UrlPrefix>
type UrlPrefixCollection = class
    interface ICollection<UrlPrefix>
    interface seq<UrlPrefix>
    interface IEnumerable
Public Class UrlPrefixCollection
Implements ICollection(Of UrlPrefix), IEnumerable(Of UrlPrefix)
继承
UrlPrefixCollection
实现

属性

Count

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

IsReadOnly

获取一个值,该值确定此集合是否为只读。

方法

Add(String)

UrlPrefix从给定的字符串创建,并将其添加到此集合中。

Add(UrlPrefix)

向此集合添加一个 UrlPrefix

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()

返回循环访问此集合的枚举器。

Remove(String)
Remove(UrlPrefix)

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

显式接口实现

IEnumerable.GetEnumerator()

适用于