다음을 통해 공유


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

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