List & Label .NET
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.

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)!



In This Topic
    CreateOrUpdateItem Method
    In This Topic

    Stores a new or modified item in the repository.

    Syntax
    'Declaration
     
    
    Sub CreateOrUpdateItem( _
       ByVal item As RepositoryItem, _
       ByVal importData As String, _
       ByVal sourceStream As Stream _
    ) 
    void CreateOrUpdateItem( 
       RepositoryItem item,
       string? importData,
       Stream? sourceStream
    )

    Parameters

    item

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

    importData
    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 - 22H2), Windows 11 (22H2 - 25H2), Windows Server 2016 - 2025
    .NET: .NET Framework 4.8, .NET 8, .NET 9, .NET 10

    See Also