AspNetCore.Docs/aspnet/whitepapers/aspnet4/overview/samples/sample13.cs

9 lines
268 B
C#

public class CustomRequestValidation : RequestValidator
{
protected override bool IsValidRequestString(
HttpContext context, string value,
RequestValidationSource requestValidationSource,
string collectionKey,
out int validationFailureIndex)
{...}
}