Subscribes to a stream with a predicate to apply to output tuples. The stream name of dequeued tuples is sLogicalStream. When unsubscribing, use sLogicalStream.

Namespace: StreamBase.SB.Client
Assembly: StreamBase.SB.Client (in StreamBase.SB.Client.dll) Version: 7.7.0.0

Syntax

         
 C#  Visual Basic  Visual C++ 
public StreamProperties Subscribe(
	string sStreamName,
	string sLogicalStream,
	string sPredicate
)
Public Function Subscribe ( _
	sStreamName As String, _
	sLogicalStream As String, _
	sPredicate As String _
) As StreamProperties
public:
StreamProperties^ Subscribe(
	String^ sStreamName, 
	String^ sLogicalStream, 
	String^ sPredicate
)

Parameters

sStreamName
String
the stream to which to subscribe
sLogicalStream
String
the name of the logical stream to associate with this predicate (if empty or null, defaults to streamname)
sPredicate
String
a predicate to apply to subset the stream

Return Value

the StreamProperties for the stream

Exceptions

ExceptionCondition
StreamBase.SB..::..StreamBaseExceptionthrown on error, including empty or null streamname or predicate

See Also