C# 클래스 Nxdb.Node.Element

Representation of an XML element node.
상속: ContainerNode
파일 보기 프로젝트 열기: daveaglick/Nxdb 1 사용 예제들

공개 메소드들

메소드 설명
Attribute ( string name ) : Attribute

Gets the attribute with the specified name.

AttributeValue ( string name ) : string

Gets the value of the attribute with the specified name.

Element ( string name ) : System

Initializes a new instance of the Element class. Manually constructed nodes are immutable and are not added to the database.

InsertAttribute ( string name, string value ) : void

Inserts a new attribute with the specified name and value.

RemoveAll ( ) : void
RemoveAllAttributes ( ) : void

Removes all the attributes from this element. This can only be used on database nodes. If the node is invalid this does nothing.

RemoveAttribute ( string name ) : void

Removes an attribute with the specified name. This can only be used on database nodes. If the node is invalid this does nothing.

보호된 메소드들

메소드 설명
CreateXmlNode ( ) : XmlNode

비공개 메소드들

메소드 설명
AttributeANode ( string name ) : ANode
Element ( ANode aNode, Database database ) : System

메소드 상세

Attribute() 공개 메소드

Gets the attribute with the specified name.
public Attribute ( string name ) : Attribute
name string The name of the attribute to get.
리턴 Attribute

AttributeValue() 공개 메소드

Gets the value of the attribute with the specified name.
public AttributeValue ( string name ) : string
name string The name of the attribute to get a value for.
리턴 string

CreateXmlNode() 보호된 메소드

protected CreateXmlNode ( ) : XmlNode
리턴 System.Xml.XmlNode

Element() 공개 메소드

Initializes a new instance of the Element class. Manually constructed nodes are immutable and are not added to the database.
public Element ( string name ) : System
name string The name of the element.
리턴 System

InsertAttribute() 공개 메소드

Inserts a new attribute with the specified name and value.
public InsertAttribute ( string name, string value ) : void
name string The name of the new attribute.
value string The value of the new attribute.
리턴 void

RemoveAll() 공개 메소드

public RemoveAll ( ) : void
리턴 void

RemoveAllAttributes() 공개 메소드

Removes all the attributes from this element. This can only be used on database nodes. If the node is invalid this does nothing.
The node is not a database node.
public RemoveAllAttributes ( ) : void
리턴 void

RemoveAttribute() 공개 메소드

Removes an attribute with the specified name. This can only be used on database nodes. If the node is invalid this does nothing.
The node is not a database node.
public RemoveAttribute ( string name ) : void
name string The name of the attribute to remove.
리턴 void