Discuss this help topic in SecureBlackbox Forum

TElBoxFolder.CreateObject

TElBoxFolder     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Creates a new file in this folder.

Declaration

[C#]
    TElBoxDataStorageObject CreateObject(string Name, System.IO.Stream Data, TElCustomDataStorageSecurityHandler Handler);
    TElBoxDataStorageObject CreateObject(string Name, System.IO.Stream Data, DateTime DataCreatedAt, DateTime DataModifiedAt, TElCustomDataStorageSecurityHandler Handler);

[VB.NET]
    Function CreateObject(ByVal Name As String, ByVal Data As System.IO.Stream, ByVal Handler As TElCustomDataStorageSecurityHandler) As TElBoxDataStorageObject
    Function CreateObject(ByVal Name As String, ByVal Data As System.IO.Stream, ByVal DataCreatedAt As DateTime, ByVal DataModifiedAt As DateTime, ByVal Handler As TElCustomDataStorageSecurityHandler) As TElBoxDataStorageObject

[Pascal]
    function CreateObject(const Name: string; Data: TStream; Handler: TElCustomDataStorageSecurityHandler): TElBoxDataStorageObject;
    function CreateObject(const Name: string; Data: TStream; DataCreatedAt, DataModifiedAt: TDateTime; Handler: TElCustomDataStorageSecurityHandler): TElBoxDataStorageObject;

[C++]
    TElBoxDataStorageObjectHandle CreateObject(const std::string &Name, TStream &Data, TElCustomDataStorageSecurityHandler &Handler);
    TElBoxDataStorageObjectHandle CreateObject(const std::string &Name, TStream *Data, TElCustomDataStorageSecurityHandler *Handler);
    TElBoxDataStorageObjectHandle CreateObject(const std::string &Name, TStream &Data, int64_t DataCreatedAt, int64_t DataModifiedAt, TElCustomDataStorageSecurityHandler &Handler);
    TElBoxDataStorageObjectHandle CreateObject(const std::string &Name, TStream *Data, int64_t DataCreatedAt, int64_t DataModifiedAt, TElCustomDataStorageSecurityHandler *Handler);

[PHP]
    TElBoxDataStorageObject CreateObject(string $Name, TStream $Data, TElCustomDataStorageSecurityHandler $Handler)
    TElBoxDataStorageObject CreateObject(string $Name, TStream $Data, DateTime $DataCreatedAt, DateTime $DataModifiedAt, TElCustomDataStorageSecurityHandler $Handler)

Parameters

  • Name - the name of the new file.
  • Data - a stream with the file's data.
  • Handler - the security handler which performs the operation.
  • DataCreatedAt - new file's creation date.
  • DataModifiedAt - new file's last modification date.

Return value

    Returns a reference to the newly created file object.

Description

    Use this method to create a new file in the folder.

See also:     CreateFolder     Delete    

Discuss this help topic in SecureBlackbox Forum