C# Класс Castle.MonoRail.Framework.Flash

Наследование: System.Collections.Hashtable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
FlashKey String

Private Properties

Свойство Тип Описание
Flash System
InternalAdd void

Открытые методы

Метод Описание
Add ( object key, object value ) : void

Adds an element with the specified key and value into the .

Discard ( ) : void

Marks the entire flash to be discarded by the end of the current action

Discard ( object key ) : void

Marks Flash[key] to be discarded by the end of the current action

Flash ( ) : System

Initializes a new instance of the Flash class.

Flash ( Flash copy ) : System

Initializes a new instance of the Flash class.

Keep ( ) : void

Keeps the entire flash contents available for the next action

Keep ( object key ) : void

Keeps the Flash['key'] contents available for the next action

Now ( object key, object value ) : void

Sets a flash that will not be available to the next action, only to the current. Flash.Now( key, "Hello current action" )

This method enables you to use the flash as a central messaging system in your app. When you need to pass an object to the next action, you use the standard flash assign ([]=). When you need to pass an object to the current action, you use Now, and your object will vanish when the current action is done.

Entries set via Now are accessed the same way as standard entries: Flash['my-key'].

Sweep ( ) : void

Remove any element thats not marked to be kept. This method is automatically called by the framework after the controller is processed.

this ( object key ) : object

Gets or sets the System.Object with the specified key.

Приватные методы

Метод Описание
Flash ( SerializationInfo info, StreamingContext context ) : System
InternalAdd ( object key, object value ) : void

Making sure we keep any item added to the flash directly for at least one more action.

Описание методов

Add() публичный Метод

Adds an element with the specified key and value into the .
The is read-only.-or- The has a fixed size. An element with the same key already exists in the . key is null.
public Add ( object key, object value ) : void
key object The key of the element to add.
value object The value of the element to add. The value can be null.
Результат void

Discard() публичный Метод

Marks the entire flash to be discarded by the end of the current action
public Discard ( ) : void
Результат void

Discard() публичный Метод

Marks Flash[key] to be discarded by the end of the current action
public Discard ( object key ) : void
key object
Результат void

Flash() публичный Метод

Initializes a new instance of the Flash class.
public Flash ( ) : System
Результат System

Flash() публичный Метод

Initializes a new instance of the Flash class.
public Flash ( Flash copy ) : System
copy Flash The copy.
Результат System

Keep() публичный Метод

Keeps the entire flash contents available for the next action
public Keep ( ) : void
Результат void

Keep() публичный Метод

Keeps the Flash['key'] contents available for the next action
public Keep ( object key ) : void
key object
Результат void

Now() публичный Метод

Sets a flash that will not be available to the next action, only to the current. Flash.Now( key, "Hello current action" )

This method enables you to use the flash as a central messaging system in your app. When you need to pass an object to the next action, you use the standard flash assign ([]=). When you need to pass an object to the current action, you use Now, and your object will vanish when the current action is done.

Entries set via Now are accessed the same way as standard entries: Flash['my-key'].

public Now ( object key, object value ) : void
key object
value object
Результат void

Sweep() публичный Метод

Remove any element thats not marked to be kept. This method is automatically called by the framework after the controller is processed.
public Sweep ( ) : void
Результат void

this() публичный Метод

Gets or sets the System.Object with the specified key.
public this ( object key ) : object
key object
Результат object

Описание свойств

FlashKey публичное статическое свойство

Flash key
public static String FlashKey
Результат String