combit List & Label 25 - .NET Online Web Help
CreateOrUpdateItem Method


combit.ListLabel25.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)!

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 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

IRepository Interface
IRepository Members