setCurrent static method

void setCurrent(
  1. ProtectionDomain domain
)

Sets the current executing domain to domain.

Typically used to establish context before running privileged operations.

Implementation

static void setCurrent(ProtectionDomain domain) => _ProtectionDomain.setCurrent(domain as _ProtectionDomain);