package body MSHTML.DispHTMLNamespaceCollection_Object is

   function Get_length
     (This : DispHTMLNamespaceCollection_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, DispHTMLNamespaceCollection_Get_length);
   end Get_length;

   function item
     (This  : DispHTMLNamespaceCollection_Type;
      index : GNATCOM.Types.VARIANT;
      Free  : Boolean := True)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Invoke
        (This,
         DispHTMLNamespaceCollection_item,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => index),
         Free);
   end item;

   function add
     (This              : DispHTMLNamespaceCollection_Type;
      bstrNamespace     : GNATCOM.Types.VARIANT;
      bstrUrn           : GNATCOM.Types.VARIANT;
      implementationUrl : GNATCOM.Types.VARIANT
        := GNATCOM.Types.VARIANT_MISSING;
      Free              : Boolean := True)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Invoke
        (This,
         DispHTMLNamespaceCollection_add,
         GNATCOM.Dispinterface.Parameter_Array'
         (1 => implementationUrl,
          2 => bstrUrn,
          3 => bstrNamespace),
         Free);
   end add;

   function Get_constructor
     (This : DispHTMLNamespaceCollection_Type)
     return GNATCOM.Types.VARIANT
   is
   begin
      return Get (This, DispHTMLNamespaceCollection_Get_constructor);
   end Get_constructor;

end MSHTML.DispHTMLNamespaceCollection_Object;

