Authenticate Method

Authenticate the client session.

Syntax

object.Authenticate( [UserName], [Password] )

Remarks

The Authenticate method identifies the client to the news server, which may be required to access certain newsgroups or to post articles. If the user name or password is invalid, an error will occur. This method should only be used if the server indicates that authentication is required by returning an error.

UserName
An optional string argument which specifies the username used to authenticate the client session. If the argument is omitted, the value assigned to the UserName property will be used instead.
Password
An optional string argument which specifies the password used to authenticate the client session. If the argument is omitted, the value assigned to the Password property will be used instead.

Return Value

A value of zero is returned if the operation was successful, otherwise a non-zero error code is returned which indicates the cause of the failure.

See Also

Password Property, UserName Property, Connect Method


Copyright © 2008 Catalyst Development Corporation. All rights reserved.