Open sandboxFocus

Constructor StateAttribute

StateAttribute(StateScope)

Initializes a new instance of the StateAttribute class with a slot named after the parameter.

Declaration
public StateAttribute(StateScope scope)
Parameters
Type Name Description
StateScope scope

The lifetime of the variable.

StateAttribute(StateScope, string)

Initializes a new instance of the StateAttribute class with a slot of a given name.

Declaration
public StateAttribute(StateScope scope, string slotName)
Parameters
Type Name Description
StateScope scope

The lifetime of the variable.

string slotName

The name of the slot, which identifies the variable among the advices of the group.