Open this page in the API Guide

IFileSystemService.GetRecycleBinFolderId Method (Nullable<Guid>, Nullable<Guid>, Boolean)

Gets the recycle bin folder identifier for the given account.

Namespace:  Dundas.BI.FileSystem
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (25.1.0.1000)
Syntax
Guid? GetRecycleBinFolderId(
	Guid? accountId,
	Guid? tenantId,
	bool createIfNotExists
)

Parameters

accountId
Type: System.Nullable<Guid>
The ID of the account, or null to use the account associated with the current caller context.
tenantId
Type: System.Nullable<Guid>
The ID of the tenant, or null to use the tenant associated with the current caller context.
createIfNotExists
Type: System.Boolean
Pass true to create the recycle bin folder, if it does not exist, false otherwise.

Return Value

Type: Nullable<Guid>
The recycle bin folder identifier, or null if createIfNotExists is set to false, and folder does not exist".
Exceptions
ExceptionCondition
ArgumentExceptionaccountId is Empty.
NotFoundExceptionThe specified account or tenant was not found.
NoPrivilegeExceptionThe caller does not have access to manage the most recently used list for the specified account.
InvalidSessionExceptionThe caller context is not associated with a valid session.
See Also