Table of Contents

Method WithName

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

WithName(string)

Returns a copy of this policy under a different name, keeping every configured limit.

public QueryGuardPolicy WithName(string name)

Parameters

name string

The new policy name.

Returns

QueryGuardPolicy

A new policy.

Exceptions

ArgumentException

name is empty or whitespace.