WebSphere Message Broker™ V8.0.0.0 .NET Plugin Node API
FindOrCreate Method (space, name, index)
NamespacesIBM.Broker.PluginNBElementFindOrCreate(String, String, Int32)
SUMMARY
The FindOrCreate method returns the NBElement with the given Namespace, Name and Index. If the NBElement is not found then it is created.
Declaration Syntax
C#Visual BasicVisual C++F#
public NBElement FindOrCreate(
	string space,
	string name,
	int index
)
Public Function FindOrCreate ( _
	space As String, _
	name As String, _
	index As Integer _
) As NBElement
public:
NBElement^ FindOrCreate(
	String^ space, 
	String^ name, 
	int index
)
member FindOrCreate : 
        space:string * 
        name:string * 
        index:int -> NBElement 
Parameters
space (String)
The space of the child.
name (String)
The name of the child.
index (Int32)
The index of the child.
Return Value
The existing or the new element.
Remarks

The index parameter requests that the n'th element with the matching Name and Namespace is returned, where n is the value of the index.

If index is positive, the search is done forwards, starting with the FirstChild of this element.

If index is negative, the search is done backwards, starting with the LastChild of this element.

Assembly: IBM.Broker.Plugin (Module: IBM.Broker.Plugin) Version: 8.0.0.0