HostAttribute 클래스

정의

라우팅 중에 사용되는 호스트 metdata를 제공하기 위한 특성입니다.

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
상속
HostAttribute
특성
구현

생성자

HostAttribute(String)

HostAttribute 클래스의 새 인스턴스를 초기화합니다.

HostAttribute(String[])

HostAttribute 클래스의 새 인스턴스를 초기화합니다.

속성

Hosts

라우팅 중에 사용되는 호스트의 읽기 전용 컬렉션을 반환합니다. 호스트는 punycode가 아닌 유니코드이며 포트가 있을 수 있습니다. 빈 컬렉션은 모든 호스트가 수락됨을 의미합니다.

메서드

ToString()

라우팅 중에 사용되는 호스트 metdata를 제공하기 위한 특성입니다.

적용 대상