Opalis Quick Integration Kit
3.0
Assembly: Opalis.QuickIntegrationKit(in Opalis.QuickIntegrationKit.dll) Version: 3.0.0.0 (3.1.0.1)
CopyC#
Tests whether the specified value satisfies
all of the filter conditions having the specified filter
name.
Namespace:
Opalis.QuickIntegrationKit
Assembly: Opalis.QuickIntegrationKit(in Opalis.QuickIntegrationKit.dll) Version: 3.0.0.0 (3.1.0.1)
Syntax
C# |
---|
bool Matches( string name, Object value ) |
Visual Basic (Declaration) |
---|
Function Matches ( _ name As String, _ value As Object _ ) As Boolean |
Visual C++ |
---|
bool Matches( String^ name, Object^ value ) |
Parameters
- name
- Type:
System
.
.
::
.
String
The name of the filters to included in the test
- value
- Type:
System
.
.
::
.
Object
The value to be tested.
Return Value
True if the value satisifes the filter conditions, otherwise false.
Examples

[OpalisObject( "Random Number")] public class RandomNumber { public void Design(IOpalisDesigner designer) { designer.AddOutput( "Value").AsNumber().WithFilter(); } public void Execute(IOpalisRequest request, IOpalisResponse response) { Random random = new Random(); while ( true) { int next = random.Next(); if (request.Filters.Matches( "Value", next)) { return response.PublishData( "Value", next); } } } }