ViewDataDictionary
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class ViewDataDictionary : IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Properties
Count
View Source
Declaration
public int Count { get; }
IsReadOnly
View Source
Declaration
public bool IsReadOnly { get; }
Keys
View Source
Declaration
public ICollection<string> Keys { get; }
Model
View Source
Declaration
public object Model { get; set; }
ModelMetadata
View Source
Declaration
public virtual ModelMetadata ModelMetadata { get; set; }
ModelState
View Source
Declaration
public ModelStateDictionary ModelState { get; }
Item[String]
View Source
Declaration
public object this[string key] { get; set; }
TemplateInfo
View Source
Declaration
public TemplateInfo TemplateInfo { get; set; }
Values
View Source
Declaration
public ICollection<object> Values { get; }
Methods
PopulateModelState()
View Source
Declaration
public virtual void PopulateModelState()
Add(KeyValuePair<String, Object>)
View Source
Declaration
public void Add(KeyValuePair<string, object> item)
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object> | item |
Add(String, Object)
View Source
Declaration
public void Add(string key, object value)
Parameters
Type | Name |
---|---|
System.String | key |
System.Object | value |
Clear()
View Source
Declaration
public void Clear()
Contains(KeyValuePair<String, Object>)
View Source
Declaration
public bool Contains(KeyValuePair<string, object> item)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object> | item |
ContainsKey(String)
View Source
Declaration
public bool ContainsKey(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
CopyTo(KeyValuePair<String, Object>[], Int32)
View Source
Declaration
public void CopyTo(KeyValuePair<string, object>[] array, int arrayIndex)
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object>[] | array |
System.Int32 | arrayIndex |
Eval(String)
View Source
Declaration
public object Eval(string expression)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.String | expression |
Eval(String, String)
View Source
Declaration
public string Eval(string expression, string format)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | expression |
System.String | format |
GetEnumerator()
View Source
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
GetViewDataInfo(String)
View Source
Declaration
public ViewDataInfo GetViewDataInfo(string expression)
Returns
ServiceStack.Html.ViewDataInfo
Parameters
Type | Name |
---|---|
System.String | expression |
Remove(KeyValuePair<String, Object>)
View Source
Declaration
public bool Remove(KeyValuePair<string, object> item)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.KeyValuePair<System.String,System.Object> | item |
Remove(String)
View Source
Declaration
public bool Remove(string key)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
SetModel(Object)
View Source
Declaration
protected virtual void SetModel(object value)
Parameters
Type | Name |
---|---|
System.Object | value |
TryGetValue(String, out Object)
View Source
Declaration
public bool TryGetValue(string key, out object value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | key |
System.Object | value |
IEnumerable.GetEnumerator()
View Source
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
AsRawJson()
View Source
Declaration
public MvcHtmlString AsRawJson()
Returns
ServiceStack.Html.MvcHtmlString
AsRaw()
View Source
Declaration
public MvcHtmlString AsRaw()
Returns
ServiceStack.Html.MvcHtmlString
Implements
System.Collections.Generic.IDictionary<System.String,System.Object>
System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.String,System.Object>>
System.Collections.IEnumerable