Click or drag to resize

IMcObjectsItem Property

Standard Item property for the McObjects collection.

Namespace:  MediaCy.IQL.ObjectManager
Assembly:  MediaCy.IQL.ObjectManager (in MediaCy.IQL.ObjectManager.dll) Version: 10.0.6912.0
Syntax
VB
ReadOnly Default Property Item ( 
	bstrName As String,
	<OptionalAttribute> varParentIMcObject As Object,
	Optional bstrNamespace As String = "",
	Optional eLookupMethods As mcobjNamespaceMatchMethods = mcobjNamespaceMatchMethods.mcobjMatchMethodDefault
) As McObject
	Get

Parameters

bstrName
Type: SystemString
[in] Name of the IMcObject sought. The name may have "dot" syntax if the item is a child of some other object and it may use the "double colon" syntax for namespaces. Any "double colon" syntax will override the effect of the bstrNamespace and eLookupMethods arguments (below). If a namespace is specified by the "double colon" syntax then it must match exactly. If a parent is specified without a "Namespace::", then it is looked up using the same namespace rules as for the target name (see below).
varParentIMcObject (Optional)
Type: SystemObject
VARIANT [in, optional] The parent object or if missing (VT_EMTPY, VT_ERROR or VT_NULL) or a NULL pointer, then only an object with no parent is found.
bstrNamespace (Optional)
Type: SystemString
[in, optional] Namespace to use for the lookup of the object name supplied by bstrName, or NULL or empty to use the default Namespace (see the Namespace property, and the Item method). Supply a value of "::" (double colon) to specify the global namespace, irrespective of the current default Namespace property. If the name is given using "double colon" syntax for namespaces that overrides the effect of this argument.
eLookupMethods (Optional)
Type: MediaCy.IQL.ObjectManagermcobjNamespaceMatchMethods
mcobjNamespaceMatchMethods [in, defaultvalue(mcobjMatchMethodDefault)] The default behavior differs depending on whether bstrNamespace is given or not. If no bstrNamespace argument is supplied, then the mcobjMatchScopedNamespace method is used with the default Namespace property as the target namespace. If a particular bstrNamespace is supplied, then the default lookup method is mcobjMatchExactNamespace.

Property Value

Type: McObject
Remarks
Items must be specified by name and their parent object, if any. A Namespace to use for the name lookup can be specified and several methods can be specified for its use. The property returns Nothing if the requested McObject is not found. The McObject item is the return value (S_OK is returned from the function when called from C-code) or Nothing if the specified item was not found (S_FALSE returned from the function).
See Also