RewriteOptionsExtensions.Add Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
Add(RewriteOptions, IRule) |
Adiciona uma regra às regras atuais. |
Add(RewriteOptions, Action<RewriteContext>) |
Adiciona uma regra às regras atuais. |
Add(RewriteOptions, IRule)
- Origem:
- RewriteOptionsExtensions.cs
- Origem:
- RewriteOptionsExtensions.cs
- Origem:
- RewriteOptionsExtensions.cs
Adiciona uma regra às regras atuais.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ Add(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, Microsoft::AspNetCore::Rewrite::IRule ^ rule);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.AspNetCore.Rewrite.IRule rule);
static member Add : Microsoft.AspNetCore.Rewrite.RewriteOptions * Microsoft.AspNetCore.Rewrite.IRule -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function Add (options As RewriteOptions, rule As IRule) As RewriteOptions
Parâmetros
- options
- RewriteOptions
- rule
- IRule
Uma regra a ser adicionada às regras atuais.
Retornos
As opções de Reescrita.
Aplica-se a
Add(RewriteOptions, Action<RewriteContext>)
- Origem:
- RewriteOptionsExtensions.cs
- Origem:
- RewriteOptionsExtensions.cs
- Origem:
- RewriteOptionsExtensions.cs
Adiciona uma regra às regras atuais.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ Add(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, Action<Microsoft::AspNetCore::Rewrite::RewriteContext ^> ^ applyRule);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions Add (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Action<Microsoft.AspNetCore.Rewrite.RewriteContext> applyRule);
static member Add : Microsoft.AspNetCore.Rewrite.RewriteOptions * Action<Microsoft.AspNetCore.Rewrite.RewriteContext> -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function Add (options As RewriteOptions, applyRule As Action(Of RewriteContext)) As RewriteOptions
Parâmetros
- options
- RewriteOptions
- applyRule
- Action<RewriteContext>
Um Func que verifica e aplica a regra.