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)
Syntax
'Declaration
Public Shared Function CreateNewDiscussion ( _
list As SPList, _
title As String _
) As SPListItem
'Usage
Dim list As SPList
Dim title As String
Dim returnValue As SPListItem
returnValue = SPUtility.CreateNewDiscussion(list, _
title)
public static SPListItem CreateNewDiscussion(
SPList list,
string title
)
Parameters
list
Type: Microsoft.SharePoint.SPListThe list 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.