ControllerBase.ControllerContext Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient ou définit ControllerContext.
public:
property Microsoft::AspNetCore::Mvc::ControllerContext ^ ControllerContext { Microsoft::AspNetCore::Mvc::ControllerContext ^ get(); void set(Microsoft::AspNetCore::Mvc::ControllerContext ^ value); };
[Microsoft.AspNetCore.Mvc.ControllerContext]
public Microsoft.AspNetCore.Mvc.ControllerContext ControllerContext { get; set; }
[<Microsoft.AspNetCore.Mvc.ControllerContext>]
member this.ControllerContext : Microsoft.AspNetCore.Mvc.ControllerContext with get, set
Public Property ControllerContext As ControllerContext
Valeur de propriété
- Attributs
Remarques
IControllerActivator active cette propriété lors de l’activation des contrôleurs. Si le code utilisateur instancie directement un contrôleur, le getter retourne un objet vide ControllerContext.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour