Properties Property
IIS 7.0
Gets the System.Collections..::..IDictionary member of the class.
Assembly: Microsoft.Web.Management (in Microsoft.Web.Management.dll)
Property Value
Type: System.Collections..::..IDictionaryThe System.Collections..::..IDictionary member of the class.
The following example creates a MethodTaskItem object and populates the dictionary. The trace listener output is as follows:
Dumping MTI dictionary
One First
two second
three third
MethodTaskItem mti = GetMTI("NavData", "Navigate Demo with Data", sDemoCat); IDictionary dic = mti.Properties; Trace.WriteLine("Dumping MTI dictionary"); foreach (DictionaryEntry de in dic) Trace.WriteLine(de.Key.ToString() + " " + de.Value.ToString()); items.Add(mti); ... MethodTaskItem GetMTI(string methodName, string menu, string category) { MethodTaskItem mti = new MethodTaskItem(methodName, menu, category); IDictionary d = mti.Properties; d.Add("One", "First"); d.Add("two", "second"); d.Add("three", "third"); return mti; }