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 ではなく Unicode であり、ポートを持つ場合があります。 空のコレクションは、任意のホストを受け入れることを意味します。

メソッド

ToString()

ルーティング中に使用されるホスト metdata を提供するための属性。

適用対象