Collapse All Expand All

.NET Framework Class Library
Session Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Create a topic

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public Topic CreateTopic(
    	string topicName
    )

    Public Function CreateTopic ( _
    	topicName As String _
    ) As Topic

    public:
    Topic^ CreateTopic(
    	String^ topicName
    )

#### Parameters

topicName
  Type: System..::.String
  Get or create the topic with this name.

#### Return Value

A Topic with the given name.

# Remarks

If the named topic already exists at the server, then this method returns that topic. (That topic can be either static or dynamic.)

If the named topic does not yet exist at the server, and the server allows dynamic topics, then this method creates a dynamic topic.

Dynamic destinations are provider-specific, so programs that use them might not be portable to other providers.

Note:This facility is provided for the rare cases where clients need to dynamically manipulate topic identity. This method is not for creating the physical topic. The physical creation of topics is an administrative task and is not to be initiated by the EMS API. The one exception is the creation of temporary topics, which is accomplished with the createTemporaryTopic method.

# See Also

Session Class
TIBCO.EMS Namespace