| PushMessengerTMessengerSendToGroupsT Method (T, IUserGroup) | 
        
        
          
         
            Sends a message containing an object to client side, only the CMS clients with login user as member of the specified user groups, will receive this message
            
 
    Namespace: 
   Ingeniux.CMS.Models.Messaging
    Assembly:
   Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
 Syntax
Syntaxpublic void SendToGroups<T>(
	T obj,
	IUserGroup[] groups = null
)
where T : class, new()
Public Sub SendToGroups(Of T As {Class, New}) ( 
	obj As T,
	Optional groups As IUserGroup() = Nothing
)public:
generic<typename T>
where T : ref class, gcnew()
virtual void SendToGroups(
	T obj, 
	array<IUserGroup^>^ groups = nullptr
) sealed
abstract SendToGroups : 
        obj : 'T * 
        ?groups : IUserGroup[] 
(* Defaults:
        let _groups = defaultArg groups null
*)
-> unit  when 'T : not struct, new()
override SendToGroups : 
        obj : 'T * 
        ?groups : IUserGroup[] 
(* Defaults:
        let _groups = defaultArg groups null
*)
-> unit  when 'T : not struct, new()Parameters
- obj
- Type: T
 The object to send out
- groups (Optional)
- Type: Ingeniux.CMSIUserGroup
 Groups that will receive this message at client side
Type Parameters
- T
- Type of the object to send as message
Implements
IPushMessengerSendToGroupsT(T, IUserGroup) Remarks
RemarksClient side can handle this message by creating function "serverRestMessage" on the hub object
 See Also
See Also