C# Class Rebel.Cms.Web.EmbeddedViewEngine.EmbeddedViews

A utility class
Mostra file Open project: RebelCMS/rebelcmsxu5 Class Usage Examples

Public Methods

Method Description
GetEmbeddedView ( object model ) : EmbeddedViewAttribute

Returns the embedded view attribute object for the model specified, or null if the attribute was not found

GetEmbeddedViewPath ( EmbeddedViewAttribute a ) : string

Returns the embedded view path for the model specified or an empty string if the embedded view attribute was not found

GetEmbeddedViewPath ( dynamic model ) : string

Returns the embedded view path for the model specified or an empty string if the embedded view attribute was not found

Method Details

GetEmbeddedView() public static method

Returns the embedded view attribute object for the model specified, or null if the attribute was not found
public static GetEmbeddedView ( object model ) : EmbeddedViewAttribute
model object
return EmbeddedViewAttribute

GetEmbeddedViewPath() public static method

Returns the embedded view path for the model specified or an empty string if the embedded view attribute was not found
public static GetEmbeddedViewPath ( EmbeddedViewAttribute a ) : string
a EmbeddedViewAttribute
return string

GetEmbeddedViewPath() public static method

Returns the embedded view path for the model specified or an empty string if the embedded view attribute was not found
public static GetEmbeddedViewPath ( dynamic model ) : string
model dynamic
return string