次の方法で共有


DataRepeaterItemCloneEventArgs Class

Provides data for the ItemCloning event.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.VisualBasic.PowerPacks.DataRepeaterItemCloneEventArgs

Namespace:  Microsoft.VisualBasic.PowerPacks
Assembly:  Microsoft.VisualBasic.PowerPacks.Vs (in Microsoft.VisualBasic.PowerPacks.Vs.dll)

Syntax

'Declaration
Public Class DataRepeaterItemCloneEventArgs _
    Inherits EventArgs
public class DataRepeaterItemCloneEventArgs : EventArgs
public ref class DataRepeaterItemCloneEventArgs : public EventArgs
type DataRepeaterItemCloneEventArgs =  
    class 
        inherit EventArgs 
    end
public class DataRepeaterItemCloneEventArgs extends EventArgs

The DataRepeaterItemCloneEventArgs type exposes the following members.

Constructors

  Name Description
Public method DataRepeaterItemCloneEventArgs Initializes a new instance of the DataRepeaterItemCloneEventArgs class.

Top

Properties

  Name Description
Public property Handled Gets or sets a value that specifies whether the cloning is handled by the developer.
Public property Source Gets the DataRepeaterItem from which the new DataRepeaterItem will be cloned.
Public property Target Gets or sets the new DataRepeaterItem that is the result of the cloning operation.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

Use the ItemCloning event to run custom code before cloning or to override the cloning process. The event occurs before the DataRepeaterItem and its controls are cloned from the ItemTemplate.

The DataRepeaterItemCloneEventArgs contains a Handled property that specifies whether the control should handle the cloning. If you set the Handled property to True, you are overriding the default cloning process and must handle all cloning yourself. To run custom code before the default cloning starts, set the Handled property to False.

Note

If you want to make minor changes to the cloning process, consider using the ItemCloned event instead.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualBasic.PowerPacks Namespace

ItemCloning

Other Resources

Introduction to the DataRepeater Control (Visual Studio)