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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
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)
[ClientCallableAttribute]
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.