combit List & Label 29 - .NET Help
combit.ReportServer.ClientApi.Objects Namespace / DataSource Class / DeleteAsync Method
If this parameter is set false, an combit.ReportServer.ClientApi.InvalidInputException is thrown if the data source is still used in report templates. The data source is not deleted in that case.


In This Topic
    DeleteAsync Method (DataSource)
    In This Topic
    Deletes the data source on the server.
    Syntax
    'Declaration
     
    
    Public Function DeleteAsync( _
       ByVal ignoreRemainingReferences As Boolean _
    ) As Task
    public Task DeleteAsync( 
       bool ignoreRemainingReferences
    )
    public:
    Task^ DeleteAsync( 
       bool ignoreRemainingReferences
    ) 

    Parameters

    ignoreRemainingReferences
    If this parameter is set false, an combit.ReportServer.ClientApi.InvalidInputException is thrown if the data source is still used in report templates. The data source is not deleted in that case.
    Exceptions
    ExceptionDescription
    Thrown when the data source is still used by report templates, and ignoreRemainingReferences is not true.
    Requirements

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

    See Also