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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
<ClientCallableAttribute> _
Public Shared Function CreateNewDiscussionReply ( _
parent As SPListItem _
) As SPListItem
'Usage
Dim parent As SPListItem
Dim returnValue As SPListItem
returnValue = SPUtility.CreateNewDiscussionReply(parent)
[ClientCallableAttribute]
public static SPListItem CreateNewDiscussionReply(
SPListItem parent
)
Parameters
parent
Type: Microsoft.SharePoint.SPListItemThe item to reply to.
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.