UserInformation.GetDomainNameAsync | getDomainNameAsync method

0 out of 3 rated this helpful - Rate this topic

Gets the domain name for the user.

Syntax


Windows.System.UserProfile.UserInformation.getDomainNameAsync().done( /* Your success and error handlers */ );

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<String>

A string that represents the domain name for the user.

Remarks

Access to the domain name can be blocked by privacy settings (for example, if the UserInformation::NameAccessAllowed property is false). If access is blocked, this method returns an empty string.

This method does not throw an exception.

To see how to use this method, check out our code sample.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

Windows.System.UserProfile
Windows::System::UserProfile [C++]

Metadata

Windows.winmd

See also

UserInformation

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.