|
The OnNewsGroup event is generated when the server returns
information about a newsgroup.
Syntax
Sub object_OnNewsGroup( [Index As
Integer,] ByVal GroupName As Variant,
ByVal FirstArticle As Variant, ByVal
LastArticle As Variant, ByVal Access
As Variant )
Remarks
The OnNewsGroup event is generated when the server returns
information about a newsgroup. Calling the ListGroups method
causes this event to be generated for each newsgroup on the server.
The following arguments are passed to the event handler:
- GroupName
- An string value which specifies the name of the newsgroup.
- FirstArticle
- An integer value which specifies the number for the first
available article in the newsgroup. This value corresponds to the
FirstArticle property of a selected newsgroup.
- LastArticle
- An integer value which specifies the number for the last
available article in the newsgroup. This value corresponds to the
LastArticle property of a selected newsgroup.
- Access
- An integer value which specifies the access rights for the
newsgroup. It may be one of the following values:
Value |
Constant |
Description |
0 |
nntpGroupReadOnly |
The group is read-only and cannot be modified. Attempts to
post articles to the newsgroup will result in an error. |
1 |
nntpGroupReadWrite |
Articles can be posted to the newsgroup. Even though a
newsgroup is read-write, it may require that the client
authenticate before being given permission to post articles to
the server. |
2 |
nntpGroupModerated |
The newsgroup is moderated and articles can only be posted
by the group moderator. To request that an article be posted to
the newsgroup, you must email the message to the
moderator. |
See Also
GroupName Property,
GroupTitle Property,
ListGroups Method,
OnLastGroup Event
|
|