다음을 통해 공유


XmlAttribute 클래스

특성을 나타냅니다. 특성에 대해 유효한 값과 기본값은 DTD(문서 형식 정의) 또는 스키마에 정의됩니다.

네임스페이스: System.Xml
어셈블리: System.Xml(system.xml.dll)

구문

‘선언
Public Class XmlAttribute
    Inherits XmlNode
‘사용 방법
Dim instance As XmlAttribute
public class XmlAttribute : XmlNode
public ref class XmlAttribute : public XmlNode
public class XmlAttribute extends XmlNode
public class XmlAttribute extends XmlNode

설명

특성은 요소와 연관될 수 있습니다. OwnerElement 속성을 사용하여 해당 특성이 속한 XmlElement를 가져옵니다.

XmlElement 클래스는 Attribute 노드(XmlElement.GetAttribute, XmlElement.SetAttribute, XmlElement.RemoveAttribute 등)에 액세스할 수 있도록 하는 여러 메서드를 갖습니다. 또한 컬렉션에서 이름 또는 인덱스별로 특성에 액세스할 수 있도록 하는 XmlAttributeCollection을 반환하는 XmlElement.Attributes 속성을 호출할 수 있습니다.

상속 계층 구조

System.Object
   System.Xml.XmlNode
    System.Xml.XmlAttribute

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

.NET Compact Framework

2.0, 1.0에서 지원

참고 항목

참조

XmlAttribute 멤버
System.Xml 네임스페이스

기타 리소스

DOM에서 특성 액세스
이름 또는 인덱스별로 정렬되지 않은 노드 검색
XML DOM(문서 개체 모델)