Поделиться через


IsolatedWindowsEnvironmentUserInfo.EnvironmentUserName Свойство

Определение

Не рекомендуется. Возвращает имя пользователя, вошедшего в изолированную среду Windows, так как оно отличается от ведущего пользователя и отличается от нее.

public:
 property Platform::String ^ EnvironmentUserName { Platform::String ^ get(); };
winrt::hstring EnvironmentUserName();
/// [get: Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentUserInfo is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
winrt::hstring EnvironmentUserName();
public string EnvironmentUserName { get; }
public string EnvironmentUserName { [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironmentUserInfo is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")] get; }
var string = isolatedWindowsEnvironmentUserInfo.environmentUserName;
Public ReadOnly Property EnvironmentUserName As String

Значение свойства

String

Platform::String

winrt::hstring

Строка

Атрибуты

Комментарии

Предупреждение

Это нерекомендуемый API.

Его можно запросить до завершения входа в изолированную среду Windows.

Применяется к