System.IO.Pipes.NamedPipeServerStream.GetImpersonationUserName Method

Gets the user name of the client on the other end of the pipe.

Syntax

[System.MonoTODO]
public string GetImpersonationUserName ()

Returns

The user name of the client on the other end of the pipe.

Remarks

The NamedPipeServerStream.GetImpersonationUserName method returns null if the client has not yet written to the pipe or if the connected client did not connect with a System.Security.Principal.TokenImpersonationLevel of System.Security.Principal.TokenImpersonationLevel.Impersonation.

Requirements

Namespace: System.IO.Pipes
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0