IMessageFilterTable<TFilterData>.GetMatchingValues 메서드

정의

지정된 메시지나 버퍼링된 메시지와 일치하는 필터의 필터 데이터를 컬렉션에 추가합니다.

오버로드

GetMatchingValues(Message, ICollection<TFilterData>)

지정된 메시지가 테이블에서 한 개 이상의 필터의 일치 조건을 충족하는지 여부를 나타내는 값을 반환하고, 일치하는 필터의 FilterData를 컬렉션에 추가합니다.

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

지정한 버퍼링된 메시지가 테이블에서 한 개 이상의 필터의 일치 조건을 충족하는지 여부를 나타내는 값을 반환하고, 일치하는 필터의 FilterData를 컬렉션에 추가합니다.

설명

일치 하는 필터가 두 개 이상 있고 일치 하는 필터 데이터만 필요한 경우이 메서드를 사용 합니다. 이러한 메서드는 일치 하는 필터가 있는지 여부를 나타내는 부울을 반환 하 고 일치 하는 필터 데이터를 컬렉션에 배치 합니다.

필터 데이터를 포함 하는 컬렉션은 결과가 추가 되기 전에는 지워지지 않습니다. 이렇게 하면 여러 필터 테이블의 모든 일치 항목을 단일 컬렉션으로 누적 시킬 수 있습니다.

GetMatchingValues메시지 본문의 내용을 검사 하지 않아도 되는 경우를 사용 합니다. GetMatchingValues메시지 본문의 내용을 검사 해야 하는 경우를 사용 합니다.

GetMatchingValues(Message, ICollection<TFilterData>)

지정된 메시지가 테이블에서 한 개 이상의 필터의 일치 조건을 충족하는지 여부를 나타내는 값을 반환하고, 일치하는 필터의 FilterData를 컬렉션에 추가합니다.

public:
 bool GetMatchingValues(System::ServiceModel::Channels::Message ^ message, System::Collections::Generic::ICollection<TFilterData> ^ results);
public bool GetMatchingValues (System.ServiceModel.Channels.Message message, System.Collections.Generic.ICollection<TFilterData> results);
abstract member GetMatchingValues : System.ServiceModel.Channels.Message * System.Collections.Generic.ICollection<'FilterData> -> bool
Public Function GetMatchingValues (message As Message, results As ICollection(Of TFilterData)) As Boolean

매개 변수

message
Message

테스트할 Message입니다.

results
ICollection<TFilterData>

일치하는 필터의 필터 데이터를 일반 컬렉션에 저장하는 참조 매개 변수입니다.

반환

Boolean

message가 테이블에 있는 필터 중 적어도 하나의 일치 조건을 충족하면 true이고 조건을 충족하는 필터가 없으면 false입니다.

설명

하나 이상의 필터가 메시지와 일치 하는 것으로 예상 되 고, 필터 데이터만 필요 하며, 메시지 본문의 내용을 검사 하지 않을 경우이 메서드를 사용 합니다.

일치 하는 개체의 필터 데이터는 MessageFilter results 매개 변수에 저장 됩니다.

필터 테이블의 필터를 통해 메시지 본문을 검사할 경우 메시지를 버퍼링 하 고이를 GetMatchingValues 메서드 버전으로 전달 합니다.

적용 대상

GetMatchingValues(MessageBuffer, ICollection<TFilterData>)

지정한 버퍼링된 메시지가 테이블에서 한 개 이상의 필터의 일치 조건을 충족하는지 여부를 나타내는 값을 반환하고, 일치하는 필터의 FilterData를 컬렉션에 추가합니다.

public:
 bool GetMatchingValues(System::ServiceModel::Channels::MessageBuffer ^ messageBuffer, System::Collections::Generic::ICollection<TFilterData> ^ results);
public:
 bool GetMatchingValues(System::ServiceModel::Channels::MessageBuffer ^ buffer, System::Collections::Generic::ICollection<TFilterData> ^ results);
public bool GetMatchingValues (System.ServiceModel.Channels.MessageBuffer messageBuffer, System.Collections.Generic.ICollection<TFilterData> results);
public bool GetMatchingValues (System.ServiceModel.Channels.MessageBuffer buffer, System.Collections.Generic.ICollection<TFilterData> results);
abstract member GetMatchingValues : System.ServiceModel.Channels.MessageBuffer * System.Collections.Generic.ICollection<'FilterData> -> bool
abstract member GetMatchingValues : System.ServiceModel.Channels.MessageBuffer * System.Collections.Generic.ICollection<'FilterData> -> bool
Public Function GetMatchingValues (messageBuffer As MessageBuffer, results As ICollection(Of TFilterData)) As Boolean
Public Function GetMatchingValues (buffer As MessageBuffer, results As ICollection(Of TFilterData)) As Boolean

매개 변수

messageBufferbuffer
MessageBuffer

테스트할 MessageBuffer입니다.

results
ICollection<TFilterData>

일치하는 필터의 필터 데이터를 일반 ICollection<T><FilterData>에 저장하는 참조 매개 변수입니다.

반환

Boolean

messageBuffer가 테이블에 있는 필터 중 적어도 하나의 일치 조건을 충족하면 true이고 조건을 충족하는 필터가 없으면 false입니다.

설명

버퍼링 된 메시지와 일치 하는 필터가 하나 이상 예상 되 고, 필터 데이터만 필요 하며, 메시지 본문을 검사 해야 할 경우이 메서드를 사용 합니다.

일치 하는 개체의 필터 데이터는 MessageFilter results 매개 변수에 저장 됩니다.

적용 대상