IMessageProperty 接口
定义
定义一个接口,该接口可实现来描述消息的一组属性。Defines an interface that you can implement to describe a set of properties for a message.
public interface class IMessageProperty
public interface IMessageProperty
type IMessageProperty = interface
Public Interface IMessageProperty
- 派生
注解
可以实现此接口来创建一个消息属性,并在运行时将该属性附加到消息。You can implement this interface to create a message property, and attach it to the message during runtime.
如果一个实现此接口的对象被添加到 Properties,则该对象是通过值而不是引用来添加的。If an object that implements this interface is added to Properties, it is added by value instead of by reference. 然后,此消息实例的消息属性的用户可通过克隆将此对象复制到其他消息,而不是在所有消息中共享单个对象。After this, users of this message instance's message properties can copy this object to other messages by cloning, instead of sharing a single object across all messages.
方法
| CreateCopy() |
创建当前实例的副本。Creates a copy of the current instance. |