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