UrlPrefixCollection.Add Method

Definition

Overloads

Add(UrlPrefix)

Adds a UrlPrefix to this collection.

Add(String)

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

Add(UrlPrefix)

Source:
UrlPrefixCollection.cs
Source:
UrlPrefixCollection.cs
Source:
UrlPrefixCollection.cs

Adds a UrlPrefix to this collection.

C#
public void Add (Microsoft.AspNetCore.Server.HttpSys.UrlPrefix item);

Parameters

item
UrlPrefix

The prefix to add to this collection.

Implements

Applies to

ASP.NET Core 9.0 and other versions
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

Add(String)

Source:
UrlPrefixCollection.cs
Source:
UrlPrefixCollection.cs
Source:
UrlPrefixCollection.cs

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

C#
public void Add (string prefix);

Parameters

prefix
String

The string representing the UrlPrefix to add to this collection.

Applies to

ASP.NET Core 9.0 and other versions
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