Skip to content

f9334797 bdc1 1e81 7c19 cea545d52cb6

Fernando Garcia edited this page May 8, 2018 · 1 revision

BaseBehaviorModel Class

Additional header content

Implements interface IBehavior. Which acts as the base class for different behaviors of an exporter supported by iTin Export Engine.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(BaseBehaviorModel)
    iTin.Export.Model.BaseBehaviorModel
      iTin.Export.Model.DownloadBehaviorModel
      iTin.Export.Model.MailBehaviorModel
      iTin.Export.Model.ToDropboxBehaviorModel
      iTin.Export.Model.ToSkyDriveBehaviorModel
      iTin.Export.Model.TransformFileBehaviorModel
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[SerializableAttribute]
public abstract class BaseBehaviorModel : BaseModel<BaseBehaviorModel>, 
	IBehavior

VB

<SerializableAttribute>
Public MustInherit Class BaseBehaviorModel
	Inherits BaseModel(Of BaseBehaviorModel)
	Implements IBehavior

The BaseBehaviorModel type exposes the following members.

Constructors

 

Name Description
Protected method BaseBehaviorModel Initializes a new instance of the BaseBehaviorModel class.
  Back to Top

Properties

 

Name Description
Public propertyCode example CanExecute Gets or sets a value indicating whether executes behavior.
Public property IsDefault Gets a value indicating whether this instance contains the default. (Overrides BaseModel.IsDefault.)
Public property Properties Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).)
  Back to Top

Methods

 

Name Description
Public method Equals (Inherited from Object.)
Public method Execute(IWriter) Execute behavior.
Public method Execute(IWriter, ExportSettings) Execute behavior.
Protected method ExecuteBehavior Code for execute behavior
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Protected method GetStaticBindingValue Gets the static binding value by reflection. (Inherited from BaseModel(T).)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SaveToFile(String) Saves to file. (Inherited from BaseModel(T).)
Public method SaveToFile(String, Exception) Serializes current BaseModel object into file (Inherited from BaseModel(T).)
Public method Serialize Serializes current BaseModel object into an Xml document. (Inherited from BaseModel(T).)
Public method SetOwner Sets a reference to the owner object that contains this instance.
Public method ToString Returns a string that represents the current object. (Inherited from BaseModel(T).)
  Back to Top

Remarks

The following table shows the different behaviors.  

Class Description
DownloadBehaviorModel Represents download behavior. Applies only in web mode
MailBehaviorModel Represents a email list behavior.
TransformFileBehaviorModel Represents a transform file behavior. If the writer that we are using generates a Xml transform file, this element allows us to define their behavior. Allows indicate if you want save it, where and if Xml code generated will indented.
ToDropboxBehaviorModel Represents a upload file behavior to Dropbox cloud service. Upload the result of export to Dropbox.
ToSkyDriveBehaviorModel Represents a upload file behavior to Microsoft SkyDrive cloud service. Upload the result of export to Microsoft SkyDrive.
   
Note Note
For developers, to create new behaviors;  
  1. Should be create new class that inherit from this class.
  2. Add custom properties for your new behavior.
  3. Implement the method ExecuteBehavior(IWriter, ExportSettings).
  4. Create an instance of the new behavior.
  5. Add instance to behavior collection.
  6. Enjoy!!!.

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally