29 lines
903 B
C#
29 lines
903 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using System;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNet.Mvc.Rendering;
|
|
|
|
namespace Microsoft.AspNet.Mvc
|
|
{
|
|
public interface IViewComponentHelper
|
|
{
|
|
HtmlString Invoke(string name, params object[] args);
|
|
|
|
HtmlString Invoke(Type componentType, params object[] args);
|
|
|
|
void RenderInvoke(string name, params object[] args);
|
|
|
|
void RenderInvoke(Type componentType, params object[] args);
|
|
|
|
Task<HtmlString> InvokeAsync(string name, params object[] args);
|
|
|
|
Task<HtmlString> InvokeAsync(Type componentType, params object[] args);
|
|
|
|
Task RenderInvokeAsync(string name, params object[] args);
|
|
|
|
Task RenderInvokeAsync(Type componentType, params object[] args);
|
|
}
|
|
}
|