25.4.14

Récupère le correlationID du processus SharePoint en cours



public class Correlation
    {
        [DllImport("advapi32.dll")]
        private static extern uint EventActivityIdControl(uint controlCode, ref Guid activityId);
        public const uint EVENT_ACTIVITY_CTRL_GET_ID = 1;
        public static string GetID()
        {
            Guid g = Guid.Empty;
            EventActivityIdControl(EVENT_ACTIVITY_CTRL_GET_ID, ref g);
            return g.ToString();
        }
    }

No comments:

Post a Comment