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

속성 값

String

이 처리 명령의 대상 애플리케이션이 들어 있는 String입니다.

예외

value 문자열이 null인 경우

target이 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  

적용 대상

추가 정보