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

String

属性

注解

警告

这是一个已弃用的 API。

可以在独立 Windows 环境登录完成之前对其进行查询。

适用于