Controller.ViewComponent Méthode

Définition

Surcharges

ViewComponent(Type, Object)

Crée un ViewComponentResult en spécifiant le Type d’un composant d’affichage à afficher.

ViewComponent(String)

Crée un ViewComponentResult en spécifiant le nom d’un composant d’affichage à restituer.

ViewComponent(Type)

Crée un ViewComponentResult en spécifiant le Type d’un composant d’affichage à afficher.

ViewComponent(String, Object)

Crée un ViewComponentResult en spécifiant le nom d’un composant d’affichage à restituer.

ViewComponent(Type, Object)

Source:
Controller.cs
Source:
Controller.cs

Crée un ViewComponentResult en spécifiant le Type d’un composant d’affichage à afficher.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(Type ^ componentType, System::Object ^ arguments);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType, object arguments);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType, object? arguments);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

Paramètres

componentType
Type

Composant d’affichage Type.

arguments
Object

Object avec des propriétés représentant les arguments à passer à la méthode du composant d’affichage appelé. IDictionary<TKey,TValue> Une instance contenant les arguments d’appel.

Retours

Objet créé ViewComponentResult pour la réponse.

Attributs

S’applique à

ViewComponent(String)

Source:
Controller.cs
Source:
Controller.cs

Crée un ViewComponentResult en spécifiant le nom d’un composant d’affichage à restituer.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(System::String ^ componentName);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

Paramètres

componentName
String

Nom du composant d’affichage. Il peut s’agir d’un composant ShortName d’affichage ou FullName.

Retours

Objet créé ViewComponentResult pour la réponse.

Attributs

S’applique à

ViewComponent(Type)

Source:
Controller.cs
Source:
Controller.cs

Crée un ViewComponentResult en spécifiant le Type d’un composant d’affichage à afficher.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(Type ^ componentType);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (Type componentType);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

Paramètres

componentType
Type

Composant d’affichage Type.

Retours

Objet créé ViewComponentResult pour la réponse.

Attributs

S’applique à

ViewComponent(String, Object)

Source:
Controller.cs
Source:
Controller.cs

Crée un ViewComponentResult en spécifiant le nom d’un composant d’affichage à restituer.

public:
 virtual Microsoft::AspNetCore::Mvc::ViewComponentResult ^ ViewComponent(System::String ^ componentName, System::Object ^ arguments);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName, object arguments);
[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ViewComponentResult ViewComponent (string componentName, object? arguments);
[<Microsoft.AspNetCore.Mvc.NonAction>]
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

Paramètres

componentName
String

Nom du composant d’affichage. Il peut s’agir d’un composant ShortName d’affichage ou FullName.

arguments
Object

Object avec des propriétés représentant les arguments à passer à la méthode du composant d’affichage appelé. IDictionary<TKey,TValue> Une instance contenant les arguments d’appel.

Retours

Objet créé ViewComponentResult pour la réponse.

Attributs

S’applique à