Message.CloneByRef Method (IMessage)
Clones a reference of a message. Use this method to create a copy of an existing message, especially one of a different type, into this message.
Important: This method is not the same as nor does it behave the same as Clone. That is why this message type does not implement ICloneable. It is not recommended that any code outside of Messaging core code use this function without understanding how it works, what its limitations are, and why it's being used.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public void CloneByRef(
IMessage sourceMessage
)
public:
void CloneByRef(
IMessage^ sourceMessage
)
Public Sub CloneByRef (
sourceMessage As IMessage
)
Parameters
sourceMessage
Type: Microsoft.ConfigurationManagement.Messaging.Framework.IMessageSource message to clone into this message.
See Also
CloneByRef Overload
Message Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top