MsmqMessageProperty.Get(Message) 方法

定义

获取指定的 MsmqMessagePropertyMessageGets the MsmqMessageProperty for the specified Message.

public:
 static System::ServiceModel::Channels::MsmqMessageProperty ^ Get(System::ServiceModel::Channels::Message ^ message);
public static System.ServiceModel.Channels.MsmqMessageProperty Get (System.ServiceModel.Channels.Message message);
static member Get : System.ServiceModel.Channels.Message -> System.ServiceModel.Channels.MsmqMessageProperty
Public Shared Function Get (message As Message) As MsmqMessageProperty

参数

message
Message

将要检索其属性的 MessageThe Message whose properties are to be retrieved.

返回

MsmqMessageProperty

指定 MsmqMessagePropertyMessageThe MsmqMessageProperty for the specified Message.

例外

该值为 null 或者消息的属性集合为 null。The value is null or if property collection on the message is null.

适用于