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
)

Parameters

items
Type: Microsoft.SharePoint.SPListItemCollection

The collection to add the discussion to.

title
Type: System.String

The title of the new discussion.

Return value

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