combit List & Label 30 - .NET Help
combit.Reporting.Repository Namespace / IRepository Interface / CreateOrUpdateItem Method

An object containing the repository item metadata. Note that this is always a new instance of the RepositoryItem type.

If this call was triggered by a file import (e.g. see import methods of class RepositoryImportUtil), this contains the userData parameter of the import call. Otherwise this parameter is null.

A stream that the file content of the repository item can be read from. If this parameter is null, the current file content of the repository item must not be modified (i.e. save the metadata from the 'item' parameter only, but ignore the file content)!



CreateOrUpdateItem Method

Stores a new or modified item in the repository.

Syntax
'Declaration
 
Sub CreateOrUpdateItem( _
   ByVal item As RepositoryItem, _
   ByVal importUserData As String, _
   ByVal sourceStream As Stream _
) 
 

Parameters

item

An object containing the repository item metadata. Note that this is always a new instance of the RepositoryItem type.

importUserData

If this call was triggered by a file import (e.g. see import methods of class RepositoryImportUtil), this contains the userData parameter of the import call. Otherwise this parameter is null.

sourceStream

A stream that the file content of the repository item can be read from. If this parameter is null, the current file content of the repository item must not be modified (i.e. save the metadata from the 'item' parameter only, but ignore the file content)!

Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also