共用方式為


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 環境登入完成之前進行查詢。

適用於