IMethod.GetFilters Method
Returns the filters for this method for the given method instance.
Namespace: Microsoft.BusinessData.MetadataModel
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function GetFilters ( _
methodInstance As IMethodInstance _
) As IFilterCollection
'Usage
Dim instance As IMethod
Dim methodInstance As IMethodInstance
Dim returnValue As IFilterCollection
returnValue = instance.GetFilters(methodInstance)
IFilterCollection GetFilters(
IMethodInstance methodInstance
)
Parameters
methodInstance
Type: Microsoft.BusinessData.MetadataModel.IMethodInstanceThe method instance.
Return Value
Type: Microsoft.BusinessData.Runtime.IFilterCollection
A collection of filters.
Remarks
An empty collection is returned if there are no filters for the method.
Instances of objects in the Business Data Connectivity object model are tied to the Metadata Store they are obtained from. Using instances tied to one Metadata Store with the instances from another Metadata Store will cause data corruption and other unexpected behavior. For more information, see DatabaseBackedMetadataCatalog, FileBackedMetadataCatalog, and RemoteSharedFileBackedMetadataCatalog.