C# 클래스 Castle.MonoRail.Framework.Flash

상속: System.Collections.Hashtable
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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