Udostępnij za pośrednictwem


TemplateServiceProvider.CreateTemplateResolver(IContentProvider) Method

Definition

Create a new RazorEngine.Templating.ITemplateService resolver delegate which is called by the RazorEngine.Templating.TemplateService for resolving views.

protected virtual Func<string,string> CreateTemplateResolver (Microsoft.WindowsAzure.Mobile.Service.Content.IContentProvider contentProvider);
abstract member CreateTemplateResolver : Microsoft.WindowsAzure.Mobile.Service.Content.IContentProvider -> Func<string, string>
override this.CreateTemplateResolver : Microsoft.WindowsAzure.Mobile.Service.Content.IContentProvider -> Func<string, string>
Protected Overridable Function CreateTemplateResolver (contentProvider As IContentProvider) As Func(Of String, String)

Parameters

contentProvider
IContentProvider

The IContentProvider to use to retrieve the content.

Returns

Returns a Func<T,TResult> which is used to resolve views.

Applies to