共用方式為


ViewComponentContext.ViewContext 屬性

定義

取得或設定 ViewContext

public:
 property Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ ViewContext { Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ get(); void set(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ value); };
public Microsoft.AspNetCore.Mvc.Rendering.ViewContext ViewContext { get; set; }
member this.ViewContext : Microsoft.AspNetCore.Mvc.Rendering.ViewContext with get, set
Public Property ViewContext As ViewContext

屬性值

備註

屬性 setter 僅供單元測試之用。

適用於