IValidatorReceiver.ValidateReferences Method
ValidateReferences(ValidatorDelegate<ReferenceValidationContext>, ReferenceKinds, Boolean)
Registers a reference validator, provided as a delegate. The reference validator will be invoked to validate references to any declaration in the
current set. This method must have a parameter of type in
ReferenceValidationContext. Only source code references are validated.
References added by aspects are ignored by design.
Declaration
void ValidateReferences(ValidatorDelegate<ReferenceValidationContext> validateMethod, ReferenceKinds referenceKinds, bool includeDerivedTypes = false)
Parameters
Type | Name | Description |
---|---|---|
ValidatorDelegate<ReferenceValidationContext> | validateMethod | |
ReferenceKinds | referenceKinds | Kinds of references that this method is interested to analyze. By default, all references are analyzed. |
Boolean | includeDerivedTypes |
ValidateReferences(ReferenceValidator)
Registers a reference validator, provided as an instance of the ReferenceValidator abstract class. The reference validator will be invoked to validate references to any declaration in the current set. Only source code references are validated. References added by aspects are ignored by design.
Declaration
void ValidateReferences(ReferenceValidator validator)
Parameters
Type | Name | Description |
---|---|---|
ReferenceValidator | validator |