xSession.clientComputerName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the network name of the client computer that is responsible for servicing the session.
public:
virtual System::String ^ clientComputerName();
public virtual string clientComputerName ();
abstract member clientComputerName : unit -> string
override this.clientComputerName : unit -> string
Public Overridable Function clientComputerName () As String
Returns
A string that indicates the name of the client computer.
Remarks
The following example prints the name of the client that is running the current session.
{
xSession xSession;
xSession = new xSession();
print xSession.clientComputerName();
pause;
}