## Linktab.Rules

### Description

Returns a collection of the linktab path translation rules. Each line in the linktab file defines a rule. The first portion of the rule is the origin path name and the second portion is path used to replace it.

### C# Syntax

    LinktabRuleCollection Linktab.Rules();

### Scripting Syntax

    oReturn = Linktab.Rules();

### Return Value

LinktabRuleCollection

### Examples

#### VBScript Example

    set l_linktab = xsiutils.Linktab
    if l_linktab.Filename(szFileName) = "True" then
            Set l_rulesColl = l_linktab.Rules
            LogMessage TypeName(l_rulesColl)
            ' Display each rule in the collection
            For each l_line in l_rulesColl
                    LogMessage l_line
            Next
    else
            LogMessage "Linktab file not set"
    end if