Version

TryGetReferences Method

Gets the references which have the specified rule applied to them or null if the rule is not used on the Worksheet.
Syntax
'Declaration
 
Public Function TryGetReferences( _
   ByVal rule As DataValidationRule, _
   ByRef references As WorksheetReferenceCollection _
) As Boolean
public bool TryGetReferences( 
   DataValidationRule rule,
   out WorksheetReferenceCollection references
)

Parameters

rule
The rule to test.
references
[Out] When this method returns, contains the references which have the rule applied to them or null if the rule isn't applied on the Worksheet.

Return Value

True if the rule has been applied on the Worksheet; False otherwise.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also