setCurrent static method
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);