Opalis Quick Integration Kit 3.0
The OpalisInput attribute marks a property in a class that has already been marked as an OpalisObject, as a property that receives input from the Opalis Integration Server data bus.

Namespace:  Opalis.QuickIntegrationKit
Assembly:  Opalis.QuickIntegrationKit(in Opalis.QuickIntegrationKit.dll) Version: 3.0.0.0 (3.1.0.1)

Syntax

C#
public 
sealed 
class 
OpalisInputAttribute : 
Attribute
Visual Basic (Declaration)
Public 
NotInheritable 
Class 
OpalisInputAttribute _
	
Inherits 
Attribute
Visual C++
public 
ref class 
OpalisInputAttribute 
sealed : 
public 
Attribute

Remarks

A class may have as many properties marked with OpalisInput attributes as are required.

Properties marked with the OpalisInput attribute must have a public set method. Also, there are some restrictions on the property types that are allowed. Valid property types include the following:

  • Fundamental types (i.e. bool, int, uint, double etc.)
  • Enumerations
  • DateTime
  • Classes with a public constructor taking a stringparameter.

Examples

CopyC#
using
Opalis.QuickIntegrationKit;
using System.IO.File;

[OpalisObject(
"Copy File")]
public 
class CopyFile
{

private FileInfo source;

private FileInfo
destination;

private 
bool overwrite;

	[OpalisInput]

public FileInfo Source 
	{ 
		set { source = value; } 
}

	[OpalisInput]

public FileInfo Destination 
	{ 
	 set { destination = value; } 
}

	[OpalisInput(Default=
false)]

public 
bool Overwrite 
	{ 
		set { overwrite = value; } 
}

	[OpalisMethod]

public 
void Run()
	{
		source.CopyTo(destination, overwrite);
}
}

Inheritance Hierarchy

System . . :: . Object
   System . . :: . Attribute
     Opalis.QuickIntegrationKit . . :: . OpalisInputAttribute

See Also