.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Whether a event is already attached to a document [Imported]

1 REPLY 1
Reply
Message 1 of 2
vedamurthy.gurumurthy
241 Views, 1 Reply

Whether a event is already attached to a document [Imported]

Is it possible to check whether an delegate (Event) is already attached to a document.
For example I would like to know "BeginSave" delegate is already attached to a current document, so that I can avoid reattaching the delegate.
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: vedamurthy.gurumurthy

vedamurthy.t.g@tantrainfosolutions.com schreef:
> Is it possible to check whether an delegate (Event) is already attached
> to a document. For example I would like to know "BeginSave" delegate is
> already attached to a current document, so that I can avoid reattaching
> the delegate.

If a handler is already added,

.BeginSave == null

should return false

--
http://cupocadnet.blogspot.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost