...
Code Block |
---|
string fileName = ....;
string appName = ....;
FormsService formsService = ....;
MediaFileSource source = new MediaFileSource(fileName,
ApplicationFeed.MEDIA_SOURCE_TYPE);
ApplicationQuery query = formsService.CreateApplicationQuery(null);
ApplicationFeed apps = formsService.Query(query);
ApplicationEntry app = apps.CreateEntry();
app.Title.Text = appName;
app.MediaSource = source;
app = apps.Insert(app); |
Note |
---|
NOTE: the following additions only exist in the .net client api version 5.1.1 Patch 3 |
How do I rename an application?
Code Block |
---|
String filename = ...; ApplicationEntry app = ...; // find the right application app.Title.Text = appName; app.Update(); |
Note |
---|
The method ApplicationEntry.Update() is only available in .Net Client API version 5.1 Patch 3 and later. |
How do I download an Application?
...