Compartilhar via


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

Return Value

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

See Also

Reference

SPUtility Class

SPUtility Members

CreateNewDiscussion Overload

Microsoft.SharePoint.Utilities Namespace