IMobilePublishObject.Cancel

Fore Syntax

Cancel;

Fore.NET Syntax

Cancel();

Description

The Cancel method interrupts the mobile application object publishing.

Comments

To publish, use the IMobilePublishObject.Publish method.

Fore Example

This 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 the object publishing
    PublishObject.Cancel;
    // Displaying the message in the console window
    s := PublishObject.Object.Name + " (" + PublishObject.Object.Id + ")";
    Debug.WriteLine("The 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

This 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 the object publishing
    PublishObject.Cancel();
    // Displaying the message in the console window
    s := PublishObject.Object.Name + " (" + PublishObject.Object.Id + ")";
    System.Diagnostics.Debug.WriteLine("The 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.

See also:

IMobilePublishObject