共用方式為


ReceiveContext.TryGet 方法

定義

嘗試取得接收內容。

多載

TryGet(Message, ReceiveContext)

嘗試從指定訊息接收內容。

TryGet(MessageProperties, ReceiveContext)

嘗試從指定訊息屬性集合取得接收內容。

TryGet(Message, ReceiveContext)

嘗試從指定訊息接收內容。

public:
 static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Channels::ReceiveContext ^ % property);
public static bool TryGet (System.ServiceModel.Channels.Message message, out System.ServiceModel.Channels.ReceiveContext property);
static member TryGet : System.ServiceModel.Channels.Message * ReceiveContext -> bool
Public Shared Function TryGet (message As Message, ByRef property As ReceiveContext) As Boolean

參數

message
Message

訊息。

property
ReceiveContext

接收內容。

傳回

如果已成功擷取接收內容,則為 true,否則為 false

適用於

TryGet(MessageProperties, ReceiveContext)

嘗試從指定訊息屬性集合取得接收內容。

public:
 static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Channels::ReceiveContext ^ % property);
public static bool TryGet (System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Channels.ReceiveContext property);
static member TryGet : System.ServiceModel.Channels.MessageProperties * ReceiveContext -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef property As ReceiveContext) As Boolean

參數

properties
MessageProperties

訊息屬性集合。

property
ReceiveContext

接收內容。

傳回

如果已成功擷取接收內容,則為 true,否則為 false

適用於