SPUtility.CreateNewDiscussion method (SPList, String)
會建立新SPListItem代表指定之清單中的討論。
Namespace: Microsoft.SharePoint.Utilities
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared Function CreateNewDiscussion ( _
list As SPList, _
title As String _
) As SPListItem
'用途
Dim list As SPList
Dim title As String
Dim returnValue As SPListItem
returnValue = SPUtility.CreateNewDiscussion(list, _
title)
public static SPListItem CreateNewDiscussion(
SPList list,
string title
)
參數
list
Type: Microsoft.SharePoint.SPList若要新增至討論區清單。
title
Type: System.String新的討論區的標題。
傳回值
Type: Microsoft.SharePoint.SPListItem
代表新的討論區清單項目。