UserName Property

         Example         Applies To

Returns the logon name of the user that is currently logged on to the network or operating system. Read/write String.

Remarks

The UserName property is the default parameter whenever a user name is required for a parameter in the Web object model. For example, the Webs.Open and Webs.Publish methods both require a UserName parameter. When the parameter isn't specified, the default parameter is the user name of the user currently logged on.