DefaultViewComponentHelper Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)
Inicjuje nowe wystąpienie klasy DefaultViewComponentHelper.
public:
DefaultViewComponentHelper(Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentDescriptorCollectionProvider ^ descriptorProvider, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentSelector ^ selector, Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentInvokerFactory ^ invokerFactory, Microsoft::AspNetCore::Mvc::ViewFeatures::Buffers::IViewBufferScope ^ viewBufferScope);
public DefaultViewComponentHelper (Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider descriptorProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector selector, Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvokerFactory invokerFactory, Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope viewBufferScope);
new Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector * Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvokerFactory * Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.IViewBufferScope -> Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper
Public Sub New (descriptorProvider As IViewComponentDescriptorCollectionProvider, htmlEncoder As HtmlEncoder, selector As IViewComponentSelector, invokerFactory As IViewComponentInvokerFactory, viewBufferScope As IViewBufferScope)
Parametry
- descriptorProvider
- IViewComponentDescriptorCollectionProvider
Służy IViewComponentDescriptorCollectionProvider do lokalizowania składników widoku.
- htmlEncoder
- HtmlEncoder
Element HtmlEncoder.
- selector
- IViewComponentSelector
Element IViewComponentSelector.
- invokerFactory
- IViewComponentInvokerFactory
Element IViewComponentInvokerFactory.
- viewBufferScope
- IViewBufferScope
Element IViewBufferScope , który zarządza okresem istnienia Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.ViewBuffer wystąpień.
Dotyczy
DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)
Inicjuje nowe wystąpienie klasy DefaultViewComponentHelper.
public:
DefaultViewComponentHelper(Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentDescriptorCollectionProvider ^ descriptorProvider, System::Text::Encodings::Web::HtmlEncoder ^ htmlEncoder, Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentSelector ^ selector, Microsoft::AspNetCore::Mvc::ViewComponents::IViewComponentInvokerFactory ^ invokerFactory, Microsoft::AspNetCore::Mvc::ViewFeatures::Internal::IViewBufferScope ^ viewBufferScope);
public DefaultViewComponentHelper (Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider descriptorProvider, System.Text.Encodings.Web.HtmlEncoder htmlEncoder, Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector selector, Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvokerFactory invokerFactory, Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope viewBufferScope);
new Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper : Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentDescriptorCollectionProvider * System.Text.Encodings.Web.HtmlEncoder * Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentSelector * Microsoft.AspNetCore.Mvc.ViewComponents.IViewComponentInvokerFactory * Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope -> Microsoft.AspNetCore.Mvc.ViewComponents.DefaultViewComponentHelper
Public Sub New (descriptorProvider As IViewComponentDescriptorCollectionProvider, htmlEncoder As HtmlEncoder, selector As IViewComponentSelector, invokerFactory As IViewComponentInvokerFactory, viewBufferScope As IViewBufferScope)
Parametry
- descriptorProvider
- IViewComponentDescriptorCollectionProvider
Służy IViewComponentDescriptorCollectionProvider do lokalizowania składników widoku.
- htmlEncoder
- HtmlEncoder
Element HtmlEncoder.
- selector
- IViewComponentSelector
Element IViewComponentSelector.
- invokerFactory
- IViewComponentInvokerFactory
Element IViewComponentInvokerFactory.
- viewBufferScope
- Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope
Element Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope , który zarządza okresem istnienia Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewBuffer wystąpień.