RazorEngineBuilderExtensions.AddDirective(IRazorEngineBuilder, DirectiveDescriptor) Metoda

Definicja

Dodaje określony DirectiveDescriptor .

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Razor::Language::IRazorEngineBuilder ^ AddDirective(Microsoft::AspNetCore::Razor::Language::IRazorEngineBuilder ^ builder, Microsoft::AspNetCore::Razor::Language::DirectiveDescriptor ^ directive);
public static Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder AddDirective (this Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder builder, Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor directive);
static member AddDirective : Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder * Microsoft.AspNetCore.Razor.Language.DirectiveDescriptor -> Microsoft.AspNetCore.Razor.Language.IRazorEngineBuilder
<Extension()>
Public Function AddDirective (builder As IRazorEngineBuilder, directive As DirectiveDescriptor) As IRazorEngineBuilder

Parametry

Zwraca

IRazorEngineBuilder

Element IRazorEngineBuilder.

Dotyczy