Universal_CCW.vb

Universal_CCW_Factory Properties List

NameParametersReturnsSummary
Assembly_Is_Loaded(asmb_long_name)
  • asmb_long_name: System.String. Long assembly name
Returns TRUE/FALSE if assembly object is loaded (Boolean). 
Assembly_Registry_Count
    Returns number of loaded assemblies in this project instance (Integer). 
    Assembly_Registry_Item(asmb_long_name)
    • asmb_long_name: System.String. Long assembly name
    Returns assembly object if loaded (Reflection.Assembly). Not recommended for external use as Assembly is not wrapped. 
    Current_Memory_Usage
      Returns current memory allocated (Long). 
      Pending_Message_Count
        Returns count of items in the main message queue (Integer). 
        Calling_App_Name
          Returns the name of the appication calling this library. Useful for debugging and blacklist management (String). 

          Universal_CCW_Factory Methods List

          NameParametersReturnsSummary
          #ctor
            Run additional internal code on Factory object creation, including checking the calling application against a white/blacklist. See Reg key [HKEY_CLASSES_ROOT\Universal_CCW.Universal_CCW_Factory\Application_Security] for application permissions. "Disallow" reg array value contains list of applications which will prompt the current application user to permit spawning the Factory object. 
            Load_Assembly(asmb_long_name)
            • asmb_long_name: System.String. The full assembly string for the assembly to load.
            True if Assembly successfully or already loaded, false with exception if not.Load assembly and store it in the project Assembly Registry for later reference. New objects, event delegates, and static references will be loaded based off these stored assemblies. Not usually necessary as creating objects and types automatically loads the assembly. 
            New_Static(asmb_long_name, full_class_name)
            • asmb_long_name: System.String. The long assembly name for the assembly to load.
            • full_class_name: System.String. The full class name including namespace for this static reference.
            New Universal_CCW_Container object wrapping the static class (Universal_CCW_Container).Create a wrapper object that refers to a static class or type. Suggested method for any case. 
            New_Object(item_handle, asmb_long_name, full_class_name)
            • item_handle: System.String. A new handle/name for this instance. Used primarily here for identifying event sources.
            • asmb_long_name: System.String. The long assembly name for the assembly to load.
            • full_class_name: System.String. The full class name including namespace for this static reference.
            New Universal_CCW_Container object wrapping the specified class instance (Universal_CCW_Container).Create a Universal_CCW_Container object that allows indirect interaction with a new object. Suggested method for any case. 
            Type_Name(target_item)
            • target_item: System.Object. Object you wish to check the type of.
            Typename of object (String).Function to check the type of the externally passed object. 
            Enqueue_Message(message_item)
            • message_item: System.Collections.Hashtable. A short HashTable containing a message to add to the queue. For fired events, this consists of the handle of the event source, event name, and Universal_CCW_Container-wrapped EventArgs
            Adds a message to the the message queue. The queue is a Queue type, while the message is a HashTable type. 
            Consume_Message
              The next queued item in _Message_Queue (HashTable).Removes and returns the next queue message in line. The queue is a Queue type, while the message is a HashTable type. 

              Universal_CCW_Container Properties List

              NameParametersReturnsSummary
              My_Handle
                Returns the handle you assigned to this instance at creation (String). 
                My_Object
                  Returns the actual object contained within (Object). 
                  My_Static
                    Returns the actual static class or type contained here (Type). 
                    My_TypeName
                      Returns the type name for this contained object (String). 
                      My_Assembly_FullName
                        Returns the full assembly name for this contained object (String). 

                        Universal_CCW_Container Methods List

                        NameParametersReturnsSummary
                        Get_Property_Value(property_name, index)
                        • property_name: System.String. The name of the property to look up.
                        • index: System.Object. [Optional] index if the value to be returned is a member of a collection or array.
                        The value of the object's named member. If object is returned, a new Universal_CCW_Container wrapping this object will be returned instead (Scalar value or Universal_CCW_Container if Object).Returns the value of named member of wrapped object. Optional index to get value of item in a collection or array property. If return val is object, returns object wrapped in new Universal_CCW_Container. 
                        Get_Property_TypeName(property_name, index)
                        • property_name: System.String. The name of the property to look up.
                        • index: System.Object. [Optional] index if the value to be returned is a member of a collection or array.
                        The typename of the named member (String).Gets typename of named member of wrapped object. 
                        Set_Property_Value(property_name, new_value, using_method)
                        • property_name: System.String. The name of the property or field to set.
                        • new_value: System.Object. The new value to assign. If VNW_Contained_x type, the wrapped thing will automatically be used instead.
                        • using_method: System.String. [Optional] Assignment method to use. 'set' by default. Can be 'add' or other basic method if a collection is the target. Method must be naturally supported by the property.
                        Whatever value is normally returned by any 'add', 'set', or other method, if any (Scalar value).Set named member of wrapped object using named using_method of the wrapped object's member. 
                        Call_Method(method_name, extra_args)
                        • method_name: System.String. The name of the method of the wrapped object to call.
                        • extra_args: System.Object[]. [Optional] ParamArray of arguments. If any arguments are of VNW_Contained_x type, the thing it wraps will automatically be used in its place.
                        Normal return value of object's method. If object is returned, a new Universal_CCW_Container wrapping this object will be returned instead (Scalar value or Universal_CCW_Container if Object).Call named method of wrapped object. If return val is object, returns object wrapped in new Universal_CCW_Container. 
                        Call_Static_Method(method_name, extra_args)
                        • method_name: System.String. The name of the method of the wrapped object to call.
                        • extra_args: System.Object[]. [Optional] ParamArray of arguments in order of what the method naturally requires. If any arguments are of Universal_CCW_Container type, the thing it wraps will automatically be used in its place.
                        Normal return value of static class's method. If object is returned, a new Universal_CCW_Container wrapping this object will be returned instead (Scalar value or Universal_CCW_Container if Object).Call named method of wrapped static class. 
                        Get_Static_Property_Value(member_name, index)
                        • member_name: System.String. The name of the property to look up.
                        • index: System.Object. [Optional] index if the value to be returned is a member of a collection or array.
                        The value of the static class's named member. If object is returned, a new Universal_CCW_Container wrapping this object will be returned instead (Scalar value or Universal_CCW_Container if Object).Returns the value of named property of _Contained_Static. Optional index to get value of item in a collection or array. 
                        Get_Static_Property_TypeName(member_name, index)
                        • member_name: System.String. The name of the property or field to look up.
                        • index: System.Object. [Optional] index if the value to be returned is a member of a collection or array.
                        The typename of the named member (String).Gets typename of named member of _Contained_Static. 
                        Get_Static_Field_Value(member_name)
                        • member_name: System.String. The name of the field to look up.
                        The value of the wrapped static class's or type's named field. If object is returned, a new Universal_CCW_Container wrapping this object will be returned instead (Scalar value or Universal_CCW_Container if Object).Returns the value of named field (enum value, etc) of wrapped static class or type. 
                        Get_Static_Field_TypeName(member_name)
                        • member_name: System.String. The name of the property or field to look up.
                        The typename of the named field (String).Returns the type name of named field (enum value, etc) of wrapped static class or type. 
                        Subscribe_To_Event(event_name)
                        • event_name: System.String. The name of the event of the wrapped object to subscribe to.
                        Adds event handling for the named event of this wrapped object. Fired events are enqueued in the main Universal_CCW_Factory Message Queue. The enqueued message will be a Hashtable type using the following key/value pairs: "source": the chosen handle for this wrapped wrapper "event": the name of the event "args": a new Universal_CCW_Container wrapping EventArgs or derived type. 
                        Dispose
                          Allows calling Dispose method on contained object (if method exists) 
                          Destroy
                            Allows more forced freeing of object resources. Dispose() will be called on the wrapped object (if exists), the wrapped object and static class will be set to nothing, and the parent Factory reference unlinked. 
                            © 2010 four.zero.one.unauthorized@gmail.com