Share via


SPUtility.CreateNewDiscussionReply method

Creates a new SPListItem representing a reply to another item in a Discussion Board.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Shared Function CreateNewDiscussionReply ( _
    parent As SPListItem _
) As SPListItem
'Usage
Dim parent As SPListItem
Dim returnValue As SPListItem

returnValue = SPUtility.CreateNewDiscussionReply(parent)
public static SPListItem CreateNewDiscussionReply(
    SPListItem parent
)

Parameters

Return value

Type: Microsoft.SharePoint.SPListItem
A new item that represents a reply.

Remarks

The new item is added to the collection in the ListItems property of the parent list item.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace