[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Clones a reference of a message. Use this for doing a copy of an existing message (especially of a different type) into this one.

IMPORTANT: This is not the same as Clone () () () () which is why this message type does not implement ICloneable. This does not behave the same as Clone () () () () . 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

                 
  C#     Visual Basic     Visual C++  
public 
void 
CloneByRef(
	
IMessage 
sourceMessage
)
Public 
Sub 
CloneByRef ( _
	
sourceMessage 
As 
IMessage _
)
public:
void 
CloneByRef(
	
IMessage^ 
sourceMessage
)

Parameters

sourceMessage
IMessage
Source message to clone into this message

See Also