Context.ContextProperties : Context « System.Threading « C# / C Sharp by API






Context.ContextProperties

 

using System;
using System.Runtime.Remoting.Contexts;
using System.Threading;

class MainClass
{
  static void Main(string[] args)
  {
    Context ctx = Thread.CurrentContext;
    Console.WriteLine("Info about context {0}", ctx.ContextID);

    foreach(IContextProperty itfCtxProp in ctx.ContextProperties)
      Console.WriteLine("-> Ctx Prop: {0}", itfCtxProp.Name);
  }
}

   
  








Related examples in the same category

1.Context.ContextID