Api

OsutilsSystemusername

OpenAPI > OsUtils > systemUserName

OpenAPI.OsUtils.systemUserName property

获取当前操作系统的用户名称

只支持Windows系统

Signature:

static get systemUserName(): string;

Example

const systemUserName = OpenAPI.OsUtils.systemUserName

Copyright © 2021 - 2025