HostString.MatchesAny(StringSegment, IList<StringSegment>) 메서드

정의

호스트 헤더 값의 호스트 부분을 패턴 목록과 일치합니다. 패턴이 동일한 형식을 사용하는 한 호스트는 인코딩된 punycode 또는 디코딩된 유니코드 양식일 수 있습니다.

public:
 static bool MatchesAny(Microsoft::Extensions::Primitives::StringSegment value, System::Collections::Generic::IList<Microsoft::Extensions::Primitives::StringSegment> ^ patterns);
public static bool MatchesAny (Microsoft.Extensions.Primitives.StringSegment value, System.Collections.Generic.IList<Microsoft.Extensions.Primitives.StringSegment> patterns);
static member MatchesAny : Microsoft.Extensions.Primitives.StringSegment * System.Collections.Generic.IList<Microsoft.Extensions.Primitives.StringSegment> -> bool
Public Shared Function MatchesAny (value As StringSegment, patterns As IList(Of StringSegment)) As Boolean

매개 변수

value
StringSegment

포트가 있거나 없는 호스트 헤더 값입니다.

patterns
IList<StringSegment>

포트 없이 일치시킬 패턴 집합입니다.

반환

true 패턴과 일치하면 value 입니다.

설명

지정된 값의 포트는 무시됩니다. 패턴에 포트가 없어야 합니다. 패턴은 "example.com", 모든 호스트와 일치하는 최상위 와일드카드 "*" 또는 "abc.example.com:443"와 일치하지만 "example.com:443"이 아닌 "*.example.com"와 같은 하위 도메인 와일드카드와 정확히 일치할 수 있습니다. 일치는 대/소문자를 구분하지 않습니다.

적용 대상