How do I print the correlationID of a sharepoint request?

I would like to display a requests CorrelationID to the screen. What API can I use to display this information?

For example, in a sharepoint 2010 webpart I'd like to print this sentence.

"Your current correlation ID is {TheCorrelationGuid}"

5
задан jgriffith 11 February 2011 в 17:22
поделиться