SPUtility.CreateNewDiscussion method (SPList, String)

Creates a new SPListItem representing a discussion in a specified list.

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

public static SPListItem CreateNewDiscussion(
	SPList list,
	string title
)

Parameters

list
Type: Microsoft.SharePoint.SPList

The list 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: