Sharepoint 2010 Forum

 
Home » Forum » Sharepoint 2010       Ask a questionRSS Feeds

C# code for getting existent claims providers in Sharepoint 2010 (like get-spclaimsprovider)

  Asked By: Pablo Pecora         Date: Jun 01, 2011      Category: Sharepoint 2010      Views: 1179
 

I’m trying to get the C# code that brings you’re the current installed claims providers.
That would be similar to the Sharepoint 2010 Management Shell command: get-spclaimsprovider
Any clue about that?
Thanks in advance!..
PnP

Tagged:                          

 

1 Answer Found

 
Answer #1       Answered By: Kartik Anand          Answered On: Jun 03, 2011       

Basically you have to loop through SPTrustedLoginProviders to get Claims Provider using C#.

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].