Discuss this help topic in CBFS Forum

OnSetVolumeLabel event/delegate/callback

Filter:

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

CallbackFileSystem     See also    

Overview

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

Declaration

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

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

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

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

[C#]
    public void CbFsSetVolumeLabelEvent( CallbackFileSystem Sender, String VolumeLabel );

[VB.NET]
    Sub CbFsSetVolumeLabelEvent( ByVal Sender As CallbackFileSystem, ByVal VolumeLabel As String )

[Java]
    void ICbFsVolumeEvents.onSetVolumeLabel( CallbackFileSystem 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 Callback File System.

See also

OnGetVolumeLabel    

Discuss this help topic in CBFS Forum