DestroyAction Event
Fires when an object destruction request is received.
Syntax
public event OnDestroyActionHandler OnDestroyAction; public delegate void OnDestroyActionHandler(object sender, KmipserverDestroyActionEventArgs e); public class KmipserverDestroyActionEventArgs : EventArgs { public long ConnectionId { get; } public string UniqueIdentifier { get; } public int ObjectType { get; } public int ObjectState { get; } public bool Remove { get; set; } }
Public Event OnDestroyAction As OnDestroyActionHandler Public Delegate Sub OnDestroyActionHandler(sender As Object, e As KmipserverDestroyActionEventArgs) Public Class KmipserverDestroyActionEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As Long Public ReadOnly Property UniqueIdentifier As String Public ReadOnly Property ObjectType As Integer Public ReadOnly Property ObjectState As Integer Public Property Remove As Boolean End Class
Remarks
The component fires this event when it receives a request from the client to destroy and existing object. Set Remove to true to proceed with the destruction, or to false to reject the request.