XmlDocument.Implementation 속성

정의

현재 문서에 대한 XmlImplementation 개체를 가져옵니다.

public:
 property System::Xml::XmlImplementation ^ Implementation { System::Xml::XmlImplementation ^ get(); };
public System.Xml.XmlImplementation Implementation { get; }
member this.Implementation : System.Xml.XmlImplementation
Public ReadOnly Property Implementation As XmlImplementation

속성 값

XmlImplementation

현재 문서에 대한 XmlImplementation 개체입니다.

예제

다음 예제에서는 다른 문서의 구현을 사용하여 새 XmlDocument 문서를 만듭니다.

XmlDocument^ doc1 = gcnew XmlDocument;
doc1->Load( "books.xml" );
XmlDocument^ doc2 = doc1->Implementation->CreateDocument();
XmlDocument doc1 = new XmlDocument();
 doc1.Load("books.xml");
 XmlDocument doc2 = doc1.Implementation.CreateDocument();
Dim doc1 As New XmlDocument()
doc1.Load("books.xml")
Dim doc2 As XmlDocument = doc1.Implementation.CreateDocument()

설명

XmlDocument 동일한 XmlImplementation 공유에서 만든 개체는 동일합니다 XmlNameTable. 이렇게 하면 특성 및 요소 이름을 문자열이 아닌 개체로 비교할 수 있습니다.

개체는 XmlDocument 동일한 구현을 공유하지만 한 문서에서 다른 문서로 노드를 이동하려면 이 메서드를 ImportNode 사용해야 합니다.

적용 대상