Share via


DefaultViewComponentHelper Constructors

Definition

Overloads

DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)

Initializes a new instance of DefaultViewComponentHelper.

DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)

Initializes a new instance of DefaultViewComponentHelper.

DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)

Source:
DefaultViewComponentHelper.cs

Initializes a new instance of 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)

Parameters

descriptorProvider
IViewComponentDescriptorCollectionProvider

The IViewComponentDescriptorCollectionProvider used to locate view components.

htmlEncoder
HtmlEncoder

The HtmlEncoder.

viewBufferScope
IViewBufferScope

The IViewBufferScope that manages the lifetime of Microsoft.AspNetCore.Mvc.ViewFeatures.Buffers.ViewBuffer instances.

Applies to

DefaultViewComponentHelper(IViewComponentDescriptorCollectionProvider, HtmlEncoder, IViewComponentSelector, IViewComponentInvokerFactory, IViewBufferScope)

Source:
DefaultViewComponentHelper.cs
Source:
DefaultViewComponentHelper.cs

Initializes a new instance of 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)

Parameters

descriptorProvider
IViewComponentDescriptorCollectionProvider

The IViewComponentDescriptorCollectionProvider used to locate view components.

htmlEncoder
HtmlEncoder

The HtmlEncoder.

viewBufferScope
Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope

The Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.IViewBufferScope that manages the lifetime of Microsoft.AspNetCore.Mvc.ViewFeatures.Internal.ViewBuffer instances.

Applies to