Hot answers tagged reflection
3
According to http://blog.slalom.com/2011/05/13/using-vermeer-content-types-and-impersonation-to-handle-sharepoint-document-uploads/, they are using the same code you are with one exception - instead of the List data = new List(); they are using var data = new List(). CredentialCache.DefaultCredentials is what you should be using.
Also, depending what you ...
3
Apparently, you're looking for class Microsoft.SharePoint.ApplicationPages.LanguageSettingsPage from assembly Microsoft.SharePoint.ApplicationPages.dll, which can be found under following path:
c:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\14\CONFIG\BIN\Microsoft.SharePoint.ApplicationPages.dll
There, you will need to ...
1
This uses the .NET feature of Reflection to get information about a method within a class (in this case, the GetValue method within the SPServiceCollection class, then the method is "Invoked".
The bit that might be slightly confusing is the MakeGenericMethod call, which returns a MethodInfo object which represents the method declaration of type SPWebService ...
Only top voted, non community-wiki answers of a minimum length are eligible