The AddLookup method adds a parameterized query to the Lookups collection.
| Lookups Collection |
object.AddLookup(
Name,
Query,
ConnectionID,
[MaxCacheRows])
| Part | Description |
|---|---|
| object | Expression that evaluates to an object in the Applies To list |
| Name | Lookup query name |
| Query | Query string |
| ConnectionID | Connection ID |
| MaxCacheRows | Maximum number of cache rows |
HRESULT AddLookup(BSTR Name,
BSTR Query,
long ConnectionID,
long MaxCacheRows);