Records.DeclareItemAsRecordWithDeclarationDate method
Namespace: Microsoft.SharePoint.Client.RecordsRepository
Assembly: Microsoft.Office.Client.Policy (in Microsoft.Office.Client.Policy.dll)
Syntax
'Declaration
Public Shared Sub DeclareItemAsRecordWithDeclarationDate ( _
context As ClientRuntimeContext, _
itemToDeclare As ListItem, _
declarationDate As DateTime _
)
'Usage
Dim context As ClientRuntimeContext
Dim itemToDeclare As ListItem
Dim declarationDate As DateTimeRecords.DeclareItemAsRecordWithDeclarationDate(context, _
itemToDeclare, declarationDate)
public static void DeclareItemAsRecordWithDeclarationDate(
ClientRuntimeContext context,
ListItem itemToDeclare,
DateTime declarationDate
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
- itemToDeclare
Type: Microsoft.SharePoint.Client.ListItem
- declarationDate
Type: System.DateTime