VideoOS.Platform.Login.LoginSettings.UserName integration

I’m trying to extract VideoOS.Platform.Login.LoginSettings.UserName as a string, however it returns that An object reference is required for the non-static field, method, or property

how can I reference this text value from the class

string name = LoginSettingsCache.GetLoginSettings(EnvironmentManager.Instance.MasterSite).UserName;

Frediano