HostAttribute Classe

Definição

Atributo para fornecer metdata de host usado durante o roteamento.

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
Herança
HostAttribute
Atributos
Implementações

Construtores

HostAttribute(String)

Inicializa uma nova instância da classe HostAttribute.

HostAttribute(String[])

Inicializa uma nova instância da classe HostAttribute.

Propriedades

Hosts

Retorna uma coleção somente leitura de hosts usados durante o roteamento. Os hosts serão Unicode em vez de punycode e poderão ter uma porta. Uma coleção vazia significa que qualquer host será aceito.

Métodos

ToString()

Atributo para fornecer metdata de host usado durante o roteamento.

Aplica-se a