次の方法で共有


Implementing Metadata Search Handler

The implementation and usage of metadata search handler is identical to metadata browse handler, with the exception of this class returning a filtered list of metadata objects back to the caller depending on the passed in search criteria. It can return the operations as well as categories depending on the adapter implementation. Many adapter implementations use the regular expressions to define the format of the input search criteria.

Here are steps on providing metadata search functionality within an adapter.

Step 1. Implement Search method within the adapter implementation of IMetadataSearchHandler interface

public MetadataRetrievalNode[] Search(string absoluteName, string SearchCriteria, int maxChildNodes, TimeSpan timeout)

{

// based on the search criteria create and return a hierarchy of MetadataRetrievalNode[] objects

}

Step 2. Test the adapter metadata search functionality

Testing the search functionality is similar to testing the browse function. See the post "Implementing Metadata Browse Handler" for more information.

More on this topic later!

Comments

  • Anonymous
    April 08, 2007
    After WCF LOB Adapter SDK is installed on the system, the Adapter Developer can use the WCF LOB Adapter

  • Anonymous
    June 19, 2007
    WCF LOB Adapter SDK extends the WCF channel architecture with Metadata Object Model and provides an infrastructure

  • Anonymous
    October 07, 2007
    Background: After we downloaded WCF LOB Adapter SDK and read my previous post. You will find all the...