First of all, a microgrid is capable of operating in grid-connected and stand-alone modes, and handling the transitions between these two modes.
In islanding mode, there are intentional (scheduled) or unintentional in which intentional islanding can occur in situations such as scheduled maintenance, or when degraded power quality of the host grid can endanger microgrid operation or because of economical reason.