FileController.FileExists Method (Guid, String, Nullable<Guid>) |
Determines whether a file with the specified name exists in the specified folder.
Namespace:
Dundas.BI.WebApi.Controllers
Assembly:
Dundas.BI.WebApi (in Dundas.BI.WebApi.dll) Version: 2.0.0.0 (25.2.0.1000)
Syntax[HttpPostAttribute("NameExists/{parentId}")]
[ProducesResponseTypeAttribute(440)]
public ActionResult<bool> FileExists(
Guid parentId,
[FromBodyAttribute] string name,
Guid? sessionId = null
)
<HttpPostAttribute("NameExists/{parentId}")>
<ProducesResponseTypeAttribute(440)>
Public Function FileExists (
parentId As Guid,
<FromBodyAttribute> name As String,
Optional sessionId As Guid? = Nothing
) As ActionResult(Of Boolean)
public:
[HttpPostAttribute(L"NameExists/{parentId}")]
[ProducesResponseTypeAttribute(440)]
ActionResult<bool>^ FileExists(
Guid parentId,
[FromBodyAttribute] String^ name,
Nullable<Guid> sessionId = nullptr
)
[<HttpPostAttribute("NameExists/{parentId}")>]
[<ProducesResponseTypeAttribute(440)>]
member FileExists :
parentId : Guid *
[<FromBodyAttribute>] name : string *
?sessionId : Nullable<Guid>
(* Defaults:
let _sessionId = defaultArg sessionId null
*)
-> ActionResult<bool>
Parameters
- parentId
- Type: System.Guid
The ID of the parent folder. - name
- Type: System.String
The name of the file to check for existence. - sessionId (Optional)
- Type: System.Nullable<Guid>
ID of the current session.
Return Value
Type:
ActionResult<Boolean>The operation completed successfully. The payload contains a
Boolean value containing
true if a file with the specified name exists in the specified folder;
otherwise
false.
See Also