AbortPublish;
AbortPublish();
The AbortPublish method interrupts mobile application publishing.
To publish, use the IMobileApplicationPublicator.Execute method.
The example is a procedure that interrupts mobile application publishing. Procedure input parameter: Publicator is an object that publishes a mobile application.
Add links to the Metabase, Mobile system assemblies.
Sub StopPub(Publicator: IMobileApplicationPublicator);
Var
Mobile: IMetabaseObject;
s: String;
Begin
Publicator.AbortPublish;
Mobile := Publicator.MobileApplication As IMetabaseObject;
s := Mobile.Name + " (" + Mobile.Id + ")";
Debug.WriteLine("Mobile application publishing is interrupted: " + s).
End Sub StopPub;
Procedure execution result: mobile application publishing executed by the specified publisher is interrupted; the name and identifier of the mobile application are displayed in the console window.
This example is a procedure that interrupts mobile application publishing. Procedure input parameter: Publicator is an object that publishes a mobile application.
Imports Prognoz.Platform.Interop.Mobile;
…
Public Shared Sub StopPub(Publicator: IMobileApplicationPublicator);
Var
Mobile: IMetabaseObject;
s: String;
Begin
Publicator.AbortPublish();
Mobile := Publicator.MobileApplication As IMetabaseObject;
s := Mobile.Name + " (" + Mobile.Id + ")";
System.Diagnostics.Debug.WriteLine("Mobile application publishing is interrupted: " + s).
End Sub StopPub;
procedure execution result: mobile application publishing executed by the specified publisher is interrupted; the name and identifier of the mobile application are displayed in the console window.
See also: