Method.GetFilters Method
Gets the filters associated with the specified method instance.
Namespace: Microsoft.Office.Server.ApplicationRegistry.MetadataModel
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
Public Function GetFilters ( _
methodInstance As MethodInstance _
) As FilterCollection
'Usage
Dim instance As Method
Dim methodInstance As MethodInstance
Dim returnValue As FilterCollection
returnValue = instance.GetFilters(methodInstance)
public FilterCollection GetFilters(
MethodInstance methodInstance
)
Parameters
- methodInstance
Type: Microsoft.Office.Server.ApplicationRegistry.MetadataModel.MethodInstance
The MethodInstance object.
Return Value
Type: Microsoft.Office.Server.ApplicationRegistry.Runtime.FilterCollection
A FilterCollection object.
Remarks
Even though Filters are associated with Methods, the argument to this takes a MethodInstance, because the Filters returned will be initialized with a DefaultValue that depends on the MethodInstance to get identified.
See Also
Reference
Microsoft.Office.Server.ApplicationRegistry.MetadataModel Namespace