UserName Property

Microsoft FrontPage Visual Basic

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

expression.UserName

expression    Required. An expression that returns an Application object.

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.

Example

The following example returns the current user's logon name.

myLogonName = Application.UserName