Welcome to MSDN Blogs Sign in | Join | Help

Generate the List of All Available Facets and Their Properties

Our colleague Jens Suessmeyer in Germany has figured out how to generate the list of all facets and their properties. He has posted the list on his blog. Below is the code snippet from Jens:

foreach (FacetInfo info in PolicyStore.Facets)

{

     Console.WriteLine(info.Name);

     foreach (System.Reflection.PropertyInfo p in info.FacetProperties)

     {

          Console.WriteLine("\t" + p.Name);

     }

}

                                                    

About the Author:

Hongfei Guo is a PM on the SQL Server Manageability team at Microsoft

Published Monday, April 20, 2009 10:40 AM by sqlpbm

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Generate the List of All Available Facets and Their Properties | ASP NET Hosting

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker