HostAttribute Classe

Definizione

Attributo per fornire metdata host usato durante il routing.

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
Ereditarietà
HostAttribute
Attributi
Implementazioni

Costruttori

HostAttribute(String)

Inizializza una nuova istanza della classe HostAttribute.

HostAttribute(String[])

Inizializza una nuova istanza della classe HostAttribute.

Proprietà

Hosts

Restituisce una raccolta di sola lettura di host utilizzati durante il routing. Gli host saranno Unicode anziché punycode e potrebbero avere una porta. Una raccolta vuota indica che qualsiasi host verrà accettato.

Metodi

ToString()

Attributo per fornire metdata host usato durante il routing.

Si applica a