HostAttribute Klasa

Definicja

Atrybut służący do udostępniania danych metdata hosta używanych podczas routingu.

public ref class HostAttribute sealed : Attribute, Microsoft::AspNetCore::Routing::IHostMetadata
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class HostAttribute : Attribute, Microsoft.AspNetCore.Routing.IHostMetadata
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type HostAttribute = class
    inherit Attribute
    interface IHostMetadata
Public NotInheritable Class HostAttribute
Inherits Attribute
Implements IHostMetadata
Dziedziczenie
HostAttribute
Atrybuty
Implementuje

Konstruktory

HostAttribute(String)

Inicjuje nowe wystąpienie klasy HostAttribute.

HostAttribute(String[])

Inicjuje nowe wystąpienie klasy HostAttribute.

Właściwości

Hosts

Zwraca kolekcję hostów używanych podczas routingu tylko do odczytu. Hosty będą mieć format Unicode, a nie punycode i mogą mieć port. Pusta kolekcja oznacza, że każdy host zostanie zaakceptowany.

Metody

ToString()

Atrybut służący do udostępniania danych metdata hosta używanych podczas routingu.

Dotyczy