다음을 통해 공유


XProcessingInstruction.Target 속성

정의

이 처리 명령에 대한 대상 애플리케이션을 가져오거나 설정합니다.

public:
 property System::String ^ Target { System::String ^ get(); void set(System::String ^ value); };
public string Target { get; set; }
member this.Target : string with get, set
Public Property Target As String

속성 값

이 처리 명령에 대한 대상 애플리케이션입니다.

예외

문자열 value 은 .입니다 null.

대상은 XML 이름의 제약 조건을 따르지 않습니다.

예제

다음 예제에서는 처리 명령에 대 한 대상 애플리케이션을 검색 하는 속성을 사용 합니다 Target .

XProcessingInstruction pi =
    new XProcessingInstruction("xml-stylesheet", "type=\"text/xsl\" href=\"hello.xsl\"");
Console.WriteLine(pi.Target);
Dim pi As XProcessingInstruction = _
    <?xml-stylesheet type="text/xsl" href="hello.xsl"?>
Console.WriteLine(pi.Target)

이 예제는 다음과 같은 출력을 생성합니다.

xml-stylesheet

적용 대상

추가 정보