PageModel.ViewComponent 메서드

정의

오버로드

ViewComponent(Type, Object)

렌더링할 ViewComponentResult 뷰 구성 요소의 를 지정하여 Type 을 만듭니다.

ViewComponent(String)

렌더링할 ViewComponentResult 뷰 구성 요소의 이름을 지정하여 을 만듭니다.

ViewComponent(Type)

렌더링할 ViewComponentResult 뷰 구성 요소의 를 지정하여 Type 을 만듭니다.

ViewComponent(String, Object)

렌더링할 ViewComponentResult 뷰 구성 요소의 이름을 지정하여 을 만듭니다.

ViewComponent(Type, Object)

Source:
PageModel.cs

렌더링할 ViewComponentResult 뷰 구성 요소의 를 지정하여 Type 을 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(Type ^ componentType, System::Object ^ arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType, object arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType, object? arguments);
abstract member ViewComponent : Type * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : Type * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentType As Type, arguments As Object) As ViewComponentResult

매개 변수

componentType
Type

뷰 구성 요소 Type입니다.

arguments
Object

Object 호출된 뷰 구성 요소 메서드에 전달할 인수를 나타내는 속성이 있는 입니다. 또는 호출 인수를 IDictionary<TKey,TValue> 포함하는 instance.

반환

응답에 대해 만든 ViewComponentResult 개체입니다.

적용 대상

ViewComponent(String)

Source:
PageModel.cs

렌더링할 ViewComponentResult 뷰 구성 요소의 이름을 지정하여 을 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(System::String ^ componentName);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName);
abstract member ViewComponent : string -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : string -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentName As String) As ViewComponentResult

매개 변수

componentName
String

뷰 구성 요소 이름입니다. 뷰 구성 요소 ShortName 또는 FullName일 수 있습니다.

반환

응답에 대해 만든 ViewComponentResult 개체입니다.

적용 대상

ViewComponent(Type)

Source:
PageModel.cs

렌더링할 ViewComponentResult 뷰 구성 요소의 를 지정하여 Type 을 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(Type ^ componentType);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType);
abstract member ViewComponent : Type -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : Type -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentType As Type) As ViewComponentResult

매개 변수

componentType
Type

뷰 구성 요소 Type입니다.

반환

응답에 대해 만든 ViewComponentResult 개체입니다.

적용 대상

ViewComponent(String, Object)

Source:
PageModel.cs

렌더링할 ViewComponentResult 뷰 구성 요소의 이름을 지정하여 을 만듭니다.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(System::String ^ componentName, System::Object ^ arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName, object arguments);
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName, object? arguments);
abstract member ViewComponent : string * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
override this.ViewComponent : string * obj -> Microsoft.AspNetCore.Mvc.ViewComponentResult
Public Overridable Function ViewComponent (componentName As String, arguments As Object) As ViewComponentResult

매개 변수

componentName
String

뷰 구성 요소 이름입니다. 뷰 구성 요소 ShortName 또는 FullName일 수 있습니다.

arguments
Object

Object 호출된 뷰 구성 요소 메서드에 전달할 인수를 나타내는 속성이 있는 입니다. 또는 호출 인수를 IDictionary<TKey,TValue> 포함하는 instance.

반환

응답에 대해 만든 ViewComponentResult 개체입니다.

적용 대상