Namespace:
IBM.CTG
Assembly: IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 9.0.0.0
Assembly: IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 9.0.0.0
Syntax
C# |
---|
public Container CreateContainer( string containerName, string charData ) |
Visual Basic |
---|
Public Function CreateContainer ( _ containerName As String, _ charData As String _ ) As Container |
Visual C++ |
---|
public: Container^ CreateContainer( String^ containerName, String^ charData ) |
Parameters
- containerName
- Type: System..::..String
The name of the new Container.
- charData
- Type: System..::..String
A String to be placed in the Container.
Return Value
The newly created Container.
Remarks
The Container name must be between 1 and 16 characters in length and must consist of only the following types of character:
- Uppercase characters (A-Z)
- Lowercase characters (a-z)
- Digits (0-9)
- Special characters < > $ @ # / % & ? ! : | " = ' ; . - and _
Exceptions
Exception | Condition |
---|---|
IBM.CTG..::..InvalidNameException | An invalid name was specified for the Container. |
System..::..ArgumentNullException | name is nullNothingnullptra null reference (Nothing in Visual Basic). |
IBM.CTG..::..ContainerExistsException | A Container with the same name already exists within the Channel. |
System..::..ObjectDisposedException | The Channel has been disposed. |