UriParser.GetComponents(Uri, UriComponents, UriFormat) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
URI에서 구성 요소를 가져옵니다.
protected:
virtual System::String ^ GetComponents(Uri ^ uri, UriComponents components, UriFormat format);
protected virtual string GetComponents(Uri uri, UriComponents components, UriFormat format);
abstract member GetComponents : Uri * UriComponents * UriFormat -> string
override this.GetComponents : Uri * UriComponents * UriFormat -> string
Protected Overridable Function GetComponents (uri As Uri, components As UriComponents, format As UriFormat) As String
매개 변수
- uri
- Uri
구문 분석할 URI입니다.
- components
- UriComponents
uri
검색할 UriComponents.
반환
구성 요소가 포함된 문자열입니다.
예외
uri
사용자 기반 구문 분석이 필요합니다.
-또는-
uri
절대 URI가 아닙니다. 상대 URI는 이 메서드와 함께 사용할 수 없습니다.
설명
GetComponents 메서드를 사용하여 Scheme, Host또는 Port같은 URI의 다양한 부분 값을 확인합니다.
구성 요소는 URI에 표시되는 순서대로 반환됩니다. 예를 들어 Scheme 지정되면 먼저 나타납니다.