Opalis Quick Integration Kit
3.0
Assembly: Opalis.QuickIntegrationKit(in Opalis.QuickIntegrationKit.dll) Version: 3.0.0.0 (3.1.0.1)
Publishes a value with the specified
identifer.
Namespace:
Opalis.QuickIntegrationKit
Assembly: Opalis.QuickIntegrationKit(in Opalis.QuickIntegrationKit.dll) Version: 3.0.0.0 (3.1.0.1)
Syntax
C# |
---|
void Publish( string id, Object value ) |
Visual Basic (Declaration) |
---|
Sub Publish ( _ id As String, _ value As Object _ ) |
Visual C++ |
---|
void Publish( String^ id, Object^ value ) |
Parameters
- id
- Type:
System
.
.
::
.
String
The name of the data item that is being published.
- value
- Type:
System
.
.
::
.
Object
The value to be published.
Return Value
True if the value was published, otherwise falseExamples
CopyC#
[OpalisObject( "File Length")] public class FileLength : IOpalisObject { public void Design(IOpalisDesigner designer) { designer.AddInput( "File").WithFileBrowser(); designer.AddOutput( "Length").AsNumber().WithDescription( "File length in bytes"); } public void Execute(IOpalisRequest request, IOpalisResponse response) { FileInfo fileInfo = new FileInfo(request.Inputs[ "File"].AsString()); response.Publish( "Length", fileInfo.Length); } }