SecurityElement.Equal(SecurityElement) 메서드

정의

두 개의 XML 요소 개체가 일치하는지 비교합니다.

public:
 bool Equal(System::Security::SecurityElement ^ other);
public bool Equal (System.Security.SecurityElement? other);
public bool Equal (System.Security.SecurityElement other);
member this.Equal : System.Security.SecurityElement -> bool
Public Function Equal (other As SecurityElement) As Boolean

매개 변수

other
SecurityElement

현재 XML 요소 개체와 비교할 XML 요소 개체입니다.

반환

Boolean

현재 XML 요소의 태그, 특성 이름과 값, 자식 요소 및 텍스트 필드가 other 매개 변수의 상대 요소와 동일하면 true이고, 그렇지 않으면 false입니다.

예제

다음 코드에서는 메서드를 사용하여 두 XML 요소를 비교하는 방법을 보여 Equal 있습니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 SecurityElement 클래스입니다.

if ( xmlElement->Equal( localXmlElement ) )
if (xmlElement.Equal(localXmlElement))
If xmlElement.Equal(localXmlElement) Then

설명

자식 요소가 있는 경우 비교가 재귀적으로 확장됩니다.

동일한 문자의 서로 다른 XML 표현을 비교할 수 없습니다.

적용 대상