Share via


PageModel.ViewComponent Yöntem

Tanım

Aşırı Yüklemeler

ViewComponent(Type, Object)

İşlenmek ViewComponentResult üzere bir görünüm bileşeni belirterek Type bir oluşturur.

ViewComponent(String)

İşlenmek ViewComponentResult üzere bir görünüm bileşeninin adını belirterek bir oluşturur.

ViewComponent(Type)

İşlenmek ViewComponentResult üzere bir görünüm bileşeni belirterek Type bir oluşturur.

ViewComponent(String, Object)

İşlenmek ViewComponentResult üzere bir görünüm bileşeninin adını belirterek bir oluşturur.

ViewComponent(Type, Object)

Kaynak:
PageModel.cs

İşlenmek ViewComponentResult üzere bir görünüm bileşeni belirterek Type bir oluşturur.

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

Parametreler

componentType
Type

Görünüm bileşeni Type.

arguments
Object

Object Çağrılan görünüm bileşeni yöntemine geçirilecek bağımsız değişkenleri temsil eden özelliklere sahip bir. Alternatif olarak, çağırma bağımsız değişkenlerini içeren bir IDictionary<TKey,TValue> örnek.

Döndürülenler

Yanıt için oluşturulan ViewComponentResult nesne.

Şunlara uygulanır

ViewComponent(String)

Kaynak:
PageModel.cs

İşlenmek ViewComponentResult üzere bir görünüm bileşeninin adını belirterek bir oluşturur.

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

Parametreler

componentName
String

Görünüm bileşeni adı. Bir görünüm bileşeni ShortName veya FullNameolabilir.

Döndürülenler

Yanıt için oluşturulan ViewComponentResult nesne.

Şunlara uygulanır

ViewComponent(Type)

Kaynak:
PageModel.cs

İşlenmek ViewComponentResult üzere bir görünüm bileşeni belirterek Type bir oluşturur.

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

Parametreler

componentType
Type

Görünüm bileşeni Type.

Döndürülenler

Yanıt için oluşturulan ViewComponentResult nesne.

Şunlara uygulanır

ViewComponent(String, Object)

Kaynak:
PageModel.cs

İşlenmek ViewComponentResult üzere bir görünüm bileşeninin adını belirterek bir oluşturur.

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

Parametreler

componentName
String

Görünüm bileşeni adı. Bir görünüm bileşeni ShortName veya FullNameolabilir.

arguments
Object

Object Çağrılan görünüm bileşeni yöntemine geçirilecek bağımsız değişkenleri temsil eden özelliklere sahip bir. Alternatif olarak, çağırma bağımsız değişkenlerini içeren bir IDictionary<TKey,TValue> örnek.

Döndürülenler

Yanıt için oluşturulan ViewComponentResult nesne.

Şunlara uygulanır