SharePoint 2010 Development with Silverlight (Gal Zentner's Library) by Bob German & Paul Stubbs
Author:Bob German & Paul Stubbs
Language: eng
Format: epub
Publisher: Addison-Wesley Professional
Published: 2012-06-14T16:00:00+00:00
* * *
private Action action;
public LoadClientOM(Action action)
{
this.action = action;
WebClient client = new WebClient();
client.OpenReadCompleted += ReadCompleted;
client.OpenReadAsync
(new Uri("/_layouts/clientbin/Microsoft.SharePoint.Client.xap",
UriKind.Relative));
}
* * *
The second step is to extract the Client OM assemblies from the Microsoft.SharePoint.Client.xap package you downloaded and load the assemblies. Loading the assemblies makes them available to the rest of your application. For each assembly you want to load from the downloaded .xap package, you extract the assembly as a stream using the GetResourceStream method. When you have the stream, you can pass the stream to the Load() method of an AssemblyPart class. And then finally you can callback on the Action delegate to tell the calling application that the assemblies have been loaded and are ready to be used. This is shown in Listing 8.24.
Listing 8.24. Dynamically Loading the Client OM, Part 2
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(16157)
The Mikado Method by Ola Ellnestam Daniel Brolund(13440)
Hello! Python by Anthony Briggs(13233)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(12381)
Dependency Injection in .NET by Mark Seemann(12244)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10999)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(10856)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10540)
Grails in Action by Glen Smith Peter Ledbrook(10315)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(10264)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9587)
Hit Refresh by Satya Nadella(9040)
Kotlin in Action by Dmitry Jemerov(9004)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8694)
The Kubernetes Operator Framework Book by Michael Dame(8488)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8309)
Robo-Advisor with Python by Aki Ranin(8262)
Practical Computer Architecture with Python and ARM by Alan Clements(8234)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8203)