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

Another question

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
161 Views, 0 Replies

Another question

Another question, when starting a transaction against a database, whats the difference
between this code:
Database db = HostApplicationServices.WorkingDatabase;
using (Transaction t = db.TransactionManager.StartTransaction())

and this code?
Document doc = Application.DocumentManager.MdiActiveDocument;
using (Transaction t = doc.TransactionManager.StartTransaction())

The both appear to be using the current database.

Thanks for any insights
Perry
0 REPLIES 0

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