GetCurrentUser

string GetCurrentUser(this Document doc)

Gets the current user name in the workshared environment.

Parameters

  • docDocument

    The workshared document.

Returns: Username (or null if not workshared).

Example

string user = doc.GetCurrentUser();