Share via


XPathMessageFilter 생성자

정의

XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

오버로드

XPathMessageFilter()

올바른 형식의 모든 XML 문서와 일치하는 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

XPathMessageFilter(String)

XPath 식을 통해 필터에 대한 쿼리 조건을 지정하여 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

XPathMessageFilter(XmlReader)

지정된 XML 판독기를 통해 스트리밍된 XPath를 읽어 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

XPathMessageFilter(String, XmlNamespaceManager)

지정된 XPath 식 및 네임스페이스 관리자를 사용하여 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

XPathMessageFilter(String, XsltContext)

지정된 XPath 식 및 XPathMessageFilter를 사용하여 XsltContext 클래스의 새 인스턴스를 초기화합니다.

XPathMessageFilter(XmlReader, XmlNamespaceManager)

지정된 XML 판독기와 지정된 네임스페이스 관리자를 사용하여 스트리밍된 XPath를 읽어 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

XPathMessageFilter(XmlReader, XsltContext)

지정된 XML 판독기와 XPathMessageFilter를 사용하여 스트리밍된 XPath를 읽어 네임스페이스, 사용자 지정 함수 및 변수를 확인함으로써 XsltContext 클래스의 새 인스턴스를 초기화합니다.

XPathMessageFilter()

올바른 형식의 모든 XML 문서와 일치하는 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

public:
 XPathMessageFilter();
public XPathMessageFilter ();
Public Sub New ()

설명

빈 XPath 식을 사용하여 클래스의 XPathMessageFilter 새 instance 초기화합니다. 빈 XPath 식은 항상 올바른 형식의 XML 문서와 일치하므로 모든 개체는 빈 XPath 식으로 정의된 필터 조건을 충족합니다.

적용 대상

XPathMessageFilter(String)

XPath 식을 통해 필터에 대한 쿼리 조건을 지정하여 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

public:
 XPathMessageFilter(System::String ^ xpath);
public XPathMessageFilter (string xpath);
new System.ServiceModel.Dispatcher.XPathMessageFilter : string -> System.ServiceModel.Dispatcher.XPathMessageFilter
Public Sub New (xpath As String)

매개 변수

xpath
String

XPath 1.0 식이 들어 있는 String입니다.

예외

xpathnull입니다.

설명

관리할 네임스페이스가 없는 경우 이 생성자를 사용합니다.

이 생성자는 기본 XPathMessageContext를 사용하여 속성에 할당된 Namespaces 를 초기화 XmlNamespaceManager 하므로 XPath 식은 에서 XPathMessageContext 정의하는 함수 라이브러리에 액세스할 수 있습니다.

적용 대상

XPathMessageFilter(XmlReader)

지정된 XML 판독기를 통해 스트리밍된 XPath를 읽어 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

public:
 XPathMessageFilter(System::Xml::XmlReader ^ reader);
public XPathMessageFilter (System.Xml.XmlReader reader);
new System.ServiceModel.Dispatcher.XPathMessageFilter : System.Xml.XmlReader -> System.ServiceModel.Dispatcher.XPathMessageFilter
Public Sub New (reader As XmlReader)

매개 변수

reader
XmlReader

스트리밍된 XPath 식을 읽을 XmlReader입니다.

예외

reader이(가) null인 경우

설명

판독기가 직렬화된 XPathMessageFilter의 시작 요소에 위치한다고 가정합니다. 읽기 전에 요소의 이름의 유효성이 검사되지 않습니다. 이 메서드가 반환되면 판독기는 직렬화된 XPathMessageFilter바로 다음에 배치됩니다. 또한 생성자는 XPath 식의 모든 접두사를 판독기에서 바인딩된 대로 확인하여 네임스페이스 관리자를 자동으로 초기화합니다.

이 메서드는 메서드에서 만들 수 있는 모든 XML에 WriteXPathTo 액세스할 수 있습니다.

적용 대상

XPathMessageFilter(String, XmlNamespaceManager)

지정된 XPath 식 및 네임스페이스 관리자를 사용하여 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

public:
 XPathMessageFilter(System::String ^ xpath, System::Xml::XmlNamespaceManager ^ namespaces);
public XPathMessageFilter (string xpath, System.Xml.XmlNamespaceManager namespaces);
new System.ServiceModel.Dispatcher.XPathMessageFilter : string * System.Xml.XmlNamespaceManager -> System.ServiceModel.Dispatcher.XPathMessageFilter
Public Sub New (xpath As String, namespaces As XmlNamespaceManager)

매개 변수

xpath
String

XPath 1.0 식입니다.

namespaces
XmlNamespaceManager

xpath에서 네임스페이스 접두사를 확인하는 XmlNamespaceManager입니다.

예외

xpath이(가) null인 경우

설명

XPath에서 에 정의 XPathMessageContext되지 않은 접두사를 사용하거나 고유한 XmlNamespaceManager를 사용하려는 경우 이 생성자를 사용합니다. 의 instance XPathMessageContext 만들고 이 메서드에 전달할 수 있습니다.

이 메서드에 제공된 인스턴스가 구현인 XsltContext 경우 생성자를 호출하는 XPathMessageFilter 것과 같습니다.

적용 대상

XPathMessageFilter(String, XsltContext)

지정된 XPath 식 및 XPathMessageFilter를 사용하여 XsltContext 클래스의 새 인스턴스를 초기화합니다.

public:
 XPathMessageFilter(System::String ^ xpath, System::Xml::Xsl::XsltContext ^ context);
public XPathMessageFilter (string xpath, System.Xml.Xsl.XsltContext context);
new System.ServiceModel.Dispatcher.XPathMessageFilter : string * System.Xml.Xsl.XsltContext -> System.ServiceModel.Dispatcher.XPathMessageFilter
Public Sub New (xpath As String, context As XsltContext)

매개 변수

xpath
String

필터에 대한 XPath 1.0 식입니다.

context
XsltContext

xpath에서 네임스페이스 접두사, 사용자 지정 함수 또는 변수를 확인하는 XsltContext입니다.

적용 대상

XPathMessageFilter(XmlReader, XmlNamespaceManager)

지정된 XML 판독기와 지정된 네임스페이스 관리자를 사용하여 스트리밍된 XPath를 읽어 XPathMessageFilter 클래스의 새 인스턴스를 초기화합니다.

public:
 XPathMessageFilter(System::Xml::XmlReader ^ reader, System::Xml::XmlNamespaceManager ^ namespaces);
public XPathMessageFilter (System.Xml.XmlReader reader, System.Xml.XmlNamespaceManager namespaces);
new System.ServiceModel.Dispatcher.XPathMessageFilter : System.Xml.XmlReader * System.Xml.XmlNamespaceManager -> System.ServiceModel.Dispatcher.XPathMessageFilter
Public Sub New (reader As XmlReader, namespaces As XmlNamespaceManager)

매개 변수

reader
XmlReader

스트리밍된 XPath 식을 읽을 XmlReader입니다.

namespaces
XmlNamespaceManager

reader에서 읽어 온 XPath 식에서 네임스페이스 접두사를 확인하는 XmlNamespaceManager입니다. 사용자 지정 함수나 변수를 정의하는 XsltContext일 수도 있습니다.

예외

reader이(가) null인 경우

reader가 시작 요소에 배치되지 않은 경우

언어 특성이나 네임스페이스 URI 또는 중복 특성을 읽는 데 문제가 발생한 경우

또는

XPath가 아닌, 잘못된 언어 특성을 읽은 경우

설명

사용자 고유 XmlReader 의 및 XmlNamespaceManager 를 사용하여 필터를 정의하려는 경우 이 생성자를 사용합니다.

판독기가 직렬화된 XPathMessageFilter의 시작 요소에 위치한다고 가정합니다. 읽기 전에 요소의 이름의 유효성이 검사되지 않습니다. 이 메서드가 반환되면 판독기는 직렬화된 XPathMessageFilter바로 다음에 배치됩니다.

적용 대상

XPathMessageFilter(XmlReader, XsltContext)

지정된 XML 판독기와 XPathMessageFilter를 사용하여 스트리밍된 XPath를 읽어 네임스페이스, 사용자 지정 함수 및 변수를 확인함으로써 XsltContext 클래스의 새 인스턴스를 초기화합니다.

public:
 XPathMessageFilter(System::Xml::XmlReader ^ reader, System::Xml::Xsl::XsltContext ^ context);
public XPathMessageFilter (System.Xml.XmlReader reader, System.Xml.Xsl.XsltContext context);
new System.ServiceModel.Dispatcher.XPathMessageFilter : System.Xml.XmlReader * System.Xml.Xsl.XsltContext -> System.ServiceModel.Dispatcher.XPathMessageFilter
Public Sub New (reader As XmlReader, context As XsltContext)

매개 변수

reader
XmlReader

스트리밍된 XPath 식을 읽을 XmlReader입니다.

context
XsltContext

reader에서 읽어 온 XPath 식에서 네임스페이스 접두사, 함수 및 변수를 확인하는 XsltContext입니다.

예외

reader이(가) null인 경우

설명

사용자 고유 XmlReader 의 및 XmlNamespaceManager 를 사용하여 필터를 정의하려는 경우 이 생성자를 사용합니다.

판독기가 직렬화된 XPathMessageFilter의 시작 요소에 위치한다고 가정합니다. 읽기 전에 요소의 이름의 유효성이 검사되지 않습니다. 이 메서드가 반환되면 판독기는 직렬화된 XPathMessageFilter바로 다음에 배치됩니다.

적용 대상