Class PartialViewMacroModel
The model used when rendering Partial View Macros
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public class PartialViewMacroModel
Constructors
PartialViewMacroModel(IPublishedContent, IDictionary<String, Object>)
Declaration
[Obsolete("Use the constructor accepting the macro id instead")]
public PartialViewMacroModel(IPublishedContent page, IDictionary<string, object> macroParams)
Parameters
Type |
Name |
Description |
IPublishedContent |
page |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
macroParams |
|
PartialViewMacroModel(IPublishedContent, Int32, String, String, IDictionary<String, Object>)
Declaration
public PartialViewMacroModel(IPublishedContent page, int macroId, string macroAlias, string macroName, IDictionary<string, object> macroParams)
Parameters
Type |
Name |
Description |
IPublishedContent |
page |
|
System.Int32 |
macroId |
|
System.String |
macroAlias |
|
System.String |
macroName |
|
System.Collections.Generic.IDictionary<System.String, System.Object> |
macroParams |
|
Properties
Content
Declaration
public IPublishedContent Content { get; }
Property Value
CurrentPage
Declaration
[Obsolete("Use the Content property instead")]
public IPublishedContent CurrentPage { get; }
Property Value
MacroAlias
Declaration
public string MacroAlias { get; }
Property Value
Type |
Description |
System.String |
|
MacroId
Declaration
public int MacroId { get; }
Property Value
Type |
Description |
System.Int32 |
|
MacroName
Declaration
public string MacroName { get; }
Property Value
Type |
Description |
System.String |
|
MacroParameters
Declaration
public IDictionary<string, object> MacroParameters { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|