XmlNodeReader.Item[] 속성

정의

오버로드

Item[Int32]

지정된 인덱스가 있는 특성의 값을 가져옵니다.

Item[String]

파생 클래스에서 재정의되면 지정된 이름이 있는 특성의 값을 가져옵니다.

Item[String, String]

지정된 로컬 이름과 네임스페이스 URI가 있는 특성의 값을 가져옵니다.

Item[Int32]

지정된 인덱스가 있는 특성의 값을 가져옵니다.

public:
 virtual property System::String ^ default[int] { System::String ^ get(int i); };
public override string this[int i] { get; }
member this.Item(int) : string
Default Public Overrides ReadOnly Property Item(i As Integer) As String

매개 변수

i
Int32

특성의 인덱스입니다.

속성 값

지정된 특성의 값을 반환합니다.

예외

i 매개 변수가 0보다 작거나 AttributeCount보다 크거나 같은 경우

설명

참고

.NET Framework 2.0에서는 클래스와 Create 메서드를 사용하여 인스턴스를 XmlReaderSettings 만드는 XmlReader 것이 좋습니다. 이렇게 하면 .NET Framework 도입된 모든 새로운 기능을 최대한 활용할 수 있습니다. 자세한 내용은 참조 페이지의 설명 섹션을 XmlReader 참조하세요.

이 속성은 판독기를 이동하지 않습니다.

추가 정보

적용 대상

Item[String]

파생 클래스에서 재정의되면 지정된 이름이 있는 특성의 값을 가져옵니다.

public:
 virtual property System::String ^ default[System::String ^] { System::String ^ get(System::String ^ name); };
public override string this[string name] { get; }
member this.Item(string) : string
Default Public Overrides ReadOnly Property Item(name As String) As String

매개 변수

name
String

속성 값

적용 대상

Item[String, String]

지정된 로컬 이름과 네임스페이스 URI가 있는 특성의 값을 가져옵니다.

public:
 virtual property System::String ^ default[System::String ^, System::String ^] { System::String ^ get(System::String ^ name, System::String ^ namespaceURI); };
public override string this[string name, string namespaceURI] { get; }
member this.Item(string * string) : string
Default Public Overrides ReadOnly Property Item(name As String, namespaceURI As String) As String

매개 변수

name
String

특성의 로컬 이름입니다.

namespaceURI
String

특성의 네임스페이스 URI입니다.

속성 값

지정된 특성의 값을 반환합니다. 특성이 없으면 null이 반환됩니다.

설명

참고

.NET Framework 2.0에서는 클래스와 Create 메서드를 사용하여 인스턴스를 XmlReaderSettings 만드는 XmlReader 것이 좋습니다. 이렇게 하면 .NET Framework 도입된 모든 새로운 기능을 최대한 활용할 수 있습니다. 자세한 내용은 참조 페이지의 설명 섹션을 XmlReader 참조하세요.

이 속성은 판독기를 이동하지 않습니다.

추가 정보

적용 대상