Newsgroups Property

Topic Last Modified: 2006-12-01

The newsgroup recipients for the message.

Applies To

IMessage Interface

Type Library

Microsoft CDO for Exchange 2000 Library

DLL Implemented In

CDOEX.DLL

Syntax

Property Newsgroups As String

HRESULT get_Newsgroups(BSTR* pVal);HRESULT put_Newsgroups(BSTR Val);

Parameters

  • pVal
    Returns the value of the Newsgroups property as a reference to a BSTR.
  • Val
    Sets the value of the Newsgroups property to the value of the BSTR.

Remarks

This property is also available as the newsgroups Field in the schema.

The string in the Newsgroups property can represent a single newsgroup or multiple newsgroups. A newsgroup name is a set of words concatenated by periods:

microsoft.public.discussion

Commas separate multiple newsgroups in the list:

alt.sample,sample.newsgroup.name,microsoft.public.chat

A newsgroup name cannot contain a comma.

Only existing newsgroups should be specified. If a newsgroup with a given name does not exist, posting to that name does not cause the newsgroup to be created.

The Newsgroups property is required on news messages. If you do not set it before calling the IMessage.Post method, an error is returned.

Responses to this message are posted to the same newsgroups unless the IMessage.FollowUpTo property is set.

The default value of Newsgroups is an empty string.

See Also

Other Resources

newsgroups Field