XProcessingInstruction.Target 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
이 처리 명령의 대상 애플리케이션이 들어 있는 문자열을 가져오거나 설정합니다.
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입니다.
예외
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