|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |
Interface describing the application data context. This set of routines is used by the application to set and remove 'named' data object to pass them to the template engine to use when rendering a template. This is the same set of methods supported by the original Context class
Property Summary | |
---|---|
object[] |
Keys
Get all the keys for the values in the context |
Method Summary | |
---|---|
bool |
ContainsKey(object key) Indicates whether the specified key is in the context. |
object |
Get(string key) Gets the value corresponding to the provided key from the context. |
object |
Put(string key, object value) Adds a name/value pair to the context. |
object |
Remove(object key) Removes the value associated with the specified key from the context. |
Property Detail |
---|
public object[] Keys
Get all the keys for the values in the context
Method Detail |
---|
public bool ContainsKey(object key)
Indicates whether the specified key is in the context.
Parameters:
key
- The key to look for.public object Get(string key)
Gets the value corresponding to the provided key from the context.
Parameters:
key
- The name of the desired value.public object Put(string key, object value)
Adds a name/value pair to the context.
Parameters:
key
- The name to key the provided value with.value
- The corresponding value.public object Remove(object key)
Removes the value associated with the specified key from the context.
Parameters:
key
- The name of the value to remove.nullif unmapped.
|
.NET Framework | |||||||||
PREV TYPE NEXT TYPE | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONST | PROP | METHOD | OP | EVENT | DETAIL: FIELD | CONST | PROP | METHOD | OP | EVENT |