IMobilePublishObject.Cancel

Fore Syntax

Cancel;

Fore.NET Syntax

Cancel();

Description

The Cancel method interrupts mobile application object publishing.

Comments

To publish, use the IMobilePublishObject.Publish method.

Fore Example

The example is a procedure. The mobile application object to be published must be passed to the input. Add a link to the Mobile system assembly.

Sub CancelPublishObject(PublishObject: IMobilePublishObject);
Var
    s: String;
Begin
    // Abort object publishing
    PublishObject.Cancel;
    // Display message in the console window
    s := PublishObject.Object.Name + " (" + PublishObject.Object.Id + ")";
    Debug.WriteLine("Object publishing '" + s + "' is aborted by the user").
End Sub CancelPublishObject;

The procedure execution result: the specified object publishing is aborted and the message informing about this is displayed in the console window.

Fore.NET Example

The example is a procedure. The mobile application object to be published must be passed to the input.

Imports Prognoz.Platform.Interop.Mobile;

Public Shared Sub CancelPublishObject(PublishObject: IMobilePublishObject);
Var
    s: String;
Begin
    // Abort object publishing
    PublishObject.Cancel();
    // Display message in the console window
    s := PublishObject.Object.Name + " (" + PublishObject.Object.Id + ")";
    System.Diagnostics.Debug.WriteLine("Object publishing '" + s + "' is aborted by the user").
End Sub CancelPublishObject;

Procedure execution result: the specified object publishing is aborted and the message informing about this is displayed in the console window.

See also:

IMobilePublishObject