OnSetVolumeLabel event/delegate/callback


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

CBFSConnect     See also    


The event is fired when the OS wants to change the volume label.


    property OnSetVolumeLabel : TCBSetVolumeLabelEvent;
    TCBSetVolumeLabelEvent = procedure( Sender : TObject; VolumeLabel: TCBString ) of object;
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    void (__stdcall *CBSetVolumeLabelEvent)(void* Sender, const wchar_t* VolumeLabel );

[C++ (VCL)]
    typedef void (__closure *TCBSetVolumeLabelEvent)( System::TObject* Sender, TCBString VolumeLabel );

[C++ (.NET)]
    public __delegate void CBSetVolumeLabelEvent( CBFSConnect^ Sender, String^ VolumeLabel );

    public void CBSetVolumeLabelEvent( CBFSConnect Sender, String VolumeLabel );

    Sub CBSetVolumeLabelEvent( ByVal Sender As CBFSConnect, ByVal VolumeLabel As String )

    void ICbFsVolumeEvents.onSetVolumeLabel( CBFSConnect sender, String volumeLabel );


  • Sender - reference to the class that called the delegate/event handler
  • VolumeLabel - the new label of the volume


This event is fired when the OS wants to change the volume label.

Error handling

See Error handling topic for detailed information about how to report errors, which occur in the event handlers, back to CBFS Connect.

See also