Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPUtility.CreateNewDiscussion method (SPListItemCollection, String)

Creates a new SPListItem representing a discussion in a specified collection of list items.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public static SPListItem CreateNewDiscussion(
	SPListItemCollection items,
	string title


Type: Microsoft.SharePoint.SPListItemCollection

The collection to add the discussion to.

Type: System.String

The title of the new discussion.

Return value

Type: Microsoft.SharePoint.SPListItem
A list item that represents the new discussion.
© 2015 Microsoft