←Select platform

DeleteMasterForm Method

Summary
Removes the first appearance of the specified Master Form object from MasterForms and deletes it from the local disk.
Syntax
C#
VB
C++
Java
public void DeleteMasterForm( 
   IMasterForm masterForm 
) 
  
Public Sub DeleteMasterForm( _ 
   ByVal masterForm As IMasterForm _ 
)  
public void deleteMasterForm( 
   IMasterForm 
); 
public: 
void DeleteMasterForm(  
   IMasterForm^ masterForm 
)  

Parameters

masterForm
The Master Form object to be deleted.

Remarks

The source code for this interface implementation class is available at <Install Directory>\Examples\DotNet\CS\AutoMasterFormsRepository.

The masterForm file will be deleted and cannot be restored. If the user want to do different action he can inherit this class and override this method or he can do his own implementation of IMasterFormsCategory. Be advised to have a back up copy of all Master Forms if this used this class, in case you have deleted the wrong Master Form.

There is no need to call DiskMasterFormsRepository.Refresh since the repository that this Master Form belongs will be updated with this deletion.

Example

For an example, refer to GenerateMasterFormAttributes.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Auto Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.