Bagikan melalui


ControllerBase.ControllerContext Properti

Definisi

Mendapatkan atau mengatur 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

Nilai Properti

Atribut

Keterangan

IControllerActivator mengaktifkan properti ini saat mengaktifkan pengontrol. Jika kode pengguna langsung membuat instans pengontrol, getter mengembalikan kosong ControllerContext.

Berlaku untuk