Lenguaje

HostAttribute Clase

Definición

Atributo para proporcionar metdata de host que se usa durante el enrutamiento.

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
Herencia
HostAttribute
Atributos
Implementaciones

Constructores

Nombre Description
HostAttribute(String)

Inicializa una nueva instancia de la clase HostAttribute.

HostAttribute(String[])

Inicializa una nueva instancia de la clase HostAttribute.

Propiedades

Nombre Description
Hosts

Devuelve una colección de solo lectura de hosts usados durante el enrutamiento. Los hosts serán Unicode en lugar de punycode y pueden tener un puerto. Una colección vacía significa que se aceptará cualquier host.

Métodos

Nombre Description
ToString()

Atributo para proporcionar metdata de host que se usa durante el enrutamiento.

Se aplica a