Open sandboxFocus

Method Allocate

Allocate()

Allocates a new slot from the default global factory. Maximum 32 slots per AppDomain.

Declaration
public static InitializationSlot Allocate()
Returns
Type Description
InitializationSlot

A new InitializationSlot with a unique bit position.

Exceptions
Type Condition
InvalidOperationException

Thrown when the maximum of 32 slots has been exceeded.