Click or drag to resize

Updater Class

Updates the data model of an application according to available update steps.
Inheritance Hierarchy
SystemObject
  PDTec.IceNet.Sdk.Model.UpdateUpdater

Namespace:  PDTec.IceNet.Sdk.Model.Update
Assembly:  PDTec.IceNet.Sdk (in PDTec.IceNet.Sdk.dll) Version: 7.2.0.0 (7.2.7583.15464)
Syntax
C#
public class Updater

The Updater type exposes the following members.

Constructors
  NameDescription
Public methodUpdater
Initializes a new instance of the Updater class
Top
Properties
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdate
Top
Events
  NameDescription
Public eventDisplayMessage
Top
Examples
Updater pUpdater = new Updater(
    pRepository, 
    Constants.Package.HullManager, 
    typeof(Constants).Assembly, 
    "GL.HullManager.BusinessLogic.ModelXml");

pUpdater.DisplayMessage += delegate(object sender, UpdateMessageEventArgs e)
{
    Console.WriteLine(e.Message + "\n");
};

if (pUpdater.IsInstalled && !pUpdater.IsUpToDate)
{
    pUpdater.Update();
}
See Also