다음을 통해 공유


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

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