OnSetVolumeLabel event/delegate/callback

Filter:

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

CBFSConnect     See also    

Overview

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

Declaration

[Pascal]
    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 );

[C#]
    public void CBSetVolumeLabelEvent( CBFSConnect Sender, String VolumeLabel );

[VB.NET]
    Sub CBSetVolumeLabelEvent( ByVal Sender As CBFSConnect, ByVal VolumeLabel As String )

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

Parameters

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

Description

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

OnGetVolumeLabel