Discuss this help topic in SecureBlackbox Forum

TElCalDAVOptions.OnSetAsCalendar

TElCalDAVOptions     See also     


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


This event is fired when a client requests to mark a collection as calendar.

Declaration

[C#]
    event TSBWebDAVSetAsCalendarEvent OnSetAsCalendar;
    delegate void TSBWebDAVSetAsCalendarEvent(Object Sender, string URL, TElWebDAVPrincipal Principal, ref bool Success);

[VB.NET]
    Event OnSetAsCalendar As TSBWebDAVSetAsCalendarEvent
    Delegate Sub TSBWebDAVSetAsCalendarEvent(ByVal Sender As Object, ByVal URL As String, ByVal Principal As TElWebDAVPrincipal, ByRef Success As Boolean)

[Pascal]
    property OnSetAsCalendar : TSBWebDAVSetAsCalendarEvent;
    TSBWebDAVSetAsCalendarEvent = procedure(Sender : TObject; const URL : string; Principal : TElWebDAVPrincipal; var Success : boolean) of object;

[C++]
    void get_OnSetAsCalendar(TSBWebDAVSetAsCalendarEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnSetAsCalendar(TSBWebDAVSetAsCalendarEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWebDAVSetAsCalendarEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcURL, int32_t szURL, SBWebDAVServer_TElWebDAVPrincipalHandle Principal, int8_t &Success);

[PHP]
    TSBWebDAVSetAsCalendarEvent|callable|NULL get_OnSetAsCalendar()
    void set_OnSetAsCalendar(TSBWebDAVSetAsCalendarEvent|callable|NULL $Value)
    callable TSBWebDAVSetAsCalendarEvent(TObject $Sender, string $URL, SBWebDAVServer_TElWebDAVPrincipal $Principal, bool &$Success)

[Java]
    TSBWebDAVSetAsCalendarEvent getOnSetAsCalendar();
    void setOnSetAsCalendar(TSBWebDAVSetAsCalendarEvent Value);
    TSBWebDAVSetAsCalendarEvent.Callback OnSetAsCalendar = new TSBWebDAVSetAsCalendarEvent.Callback() {
        public void TSBWebDAVSetAsCalendarEventCallback(TObject Sender, String URL, TElWebDAVPrincipal Principal, TSBBoolean Success) {
            //...
        }
    }

Parameters

  • Principal - the client who owns the collection.
  • Success - handler should set this parameter to true on succes, and to false on failure.
  • URL - the URL of the collection to be marked as calendar.
  • pcURL - the URL of the collection to be marked as calendar.
  • szURL - the length of pcURL in bytes.

Description

    Event handler should mark the requested collection as calendar and return true via the Success parameter. If, for some reason, the collection could not be marked as calendar, the handler should return false.

See also:     OnCheckIfCalendar    

Discuss this help topic in SecureBlackbox Forum