다음을 통해 공유


ViewComponentHelperExtensions.InvokeAsync 메서드

정의

오버로드

InvokeAsync(IViewComponentHelper, String)

지정된 name를 사용하여 뷰 구성 요소를 호출합니다.

InvokeAsync(IViewComponentHelper, Type)

형식의 뷰 구성 요소를 호출합니다 componentType.

InvokeAsync<TComponent>(IViewComponentHelper)

형식의 뷰 구성 요소를 호출합니다 TComponent.

InvokeAsync<TComponent>(IViewComponentHelper, Object)

형식의 뷰 구성 요소를 호출합니다 TComponent.

InvokeAsync(IViewComponentHelper, String)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

지정된 name를 사용하여 뷰 구성 요소를 호출합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper, System::String ^ name);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, string name);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync (helper As IViewComponentHelper, name As String) As Task(Of IHtmlContent)

매개 변수

name
String

뷰 구성 요소의 이름입니다.

반환

Task 완료 시 렌더링된 를 반환하는 입니다IHtmlContent.

적용 대상

InvokeAsync(IViewComponentHelper, Type)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

형식의 뷰 구성 요소를 호출합니다 componentType.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper, Type ^ componentType);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, Type componentType);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper * Type -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync (helper As IViewComponentHelper, componentType As Type) As Task(Of IHtmlContent)

매개 변수

componentType
Type

뷰 구성 요소 Type입니다.

반환

Task 완료 시 렌더링된 를 반환하는 입니다IHtmlContent.

적용 대상

InvokeAsync<TComponent>(IViewComponentHelper)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

형식의 뷰 구성 요소를 호출합니다 TComponent.

public:
generic <typename TComponent>
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync<TComponent> (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync(Of TComponent) (helper As IViewComponentHelper) As Task(Of IHtmlContent)

형식 매개 변수

TComponent

Type 뷰 구성 요소의 입니다.

매개 변수

반환

Task 완료 시 렌더링된 를 반환하는 입니다IHtmlContent.

적용 대상

InvokeAsync<TComponent>(IViewComponentHelper, Object)

Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs
Source:
ViewComponentHelperExtensions.cs

형식의 뷰 구성 요소를 호출합니다 TComponent.

public:
generic <typename TComponent>
[System::Runtime::CompilerServices::Extension]
 static System::Threading::Tasks::Task<Microsoft::AspNetCore::Html::IHtmlContent ^> ^ InvokeAsync(Microsoft::AspNetCore::Mvc::IViewComponentHelper ^ helper, System::Object ^ arguments);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync<TComponent> (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, object arguments);
public static System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent> InvokeAsync<TComponent> (this Microsoft.AspNetCore.Mvc.IViewComponentHelper helper, object? arguments);
static member InvokeAsync : Microsoft.AspNetCore.Mvc.IViewComponentHelper * obj -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>
<Extension()>
Public Function InvokeAsync(Of TComponent) (helper As IViewComponentHelper, arguments As Object) As Task(Of IHtmlContent)

형식 매개 변수

TComponent

Type 뷰 구성 요소의 입니다.

매개 변수

arguments
Object

호출된 뷰 구성 요소 메서드에 전달할 인수입니다.

반환

Task 완료 시 렌더링된 를 반환하는 입니다IHtmlContent.

적용 대상