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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Shared Function CreateNewDiscussion ( _
items As SPListItemCollection, _
title As String _
) As SPListItem
'Usage
Dim items As SPListItemCollection
Dim title As String
Dim returnValue As SPListItem
returnValue = SPUtility.CreateNewDiscussion(items, _
title)
public static SPListItem CreateNewDiscussion(
SPListItemCollection items,
string title
)
Parameters
items
Type: Microsoft.SharePoint.SPListItemCollectionThe collection to add the discussion to.
title
Type: System.StringThe title of the new discussion.
Return Value
Type: Microsoft.SharePoint.SPListItem
A list item that represents the new discussion.