PerformanceAdviser.GetElementFilterFromRule(PerformanceAdviserRuleId, Document)
Method
Description:
Retrieves a filter to restrict elements to be checked.
Retrieves a filter to restrict elements to be checked.
Syntax
public ElementFilter GetElementFilterFromRule(
PerformanceAdviserRuleId id,
Document document
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | PerformanceAdviserRuleId | The rule id to get information for. |
| document | Document | Document for which performance problems are being checked. |
Return Value
| Type | Description |
|---|---|
| ElementFilter | The filter to restrict elements to be checked. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |