語言

NetworkInterfaceMessageProperty.TryGet 方法

定義

嘗試從指定的訊息或一組訊息屬性中取得 NetworkInterfaceMessageProperty。

多載

名稱 Description
TryGet(Message, NetworkInterfaceMessageProperty)

嘗試從指定訊息的屬性取得 NetworkInterfaceMessageProperty。

TryGet(MessageProperties, NetworkInterfaceMessageProperty)

嘗試從指定的訊息屬性集合中取得 NetworkInterfaceMessageProperty。

TryGet(Message, NetworkInterfaceMessageProperty)

嘗試從指定訊息的屬性取得 NetworkInterfaceMessageProperty。

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

參數

message
Message

要取得網路介面訊息屬性的訊息。

property
NetworkInterfaceMessageProperty

該方法回傳 true,networkInterfaceMessageProperty 包含與該訊息相關的 NetworkInterfaceMessageProperty。

傳回

true當從訊息中取得 NetworkInterfaceMessageProperty 的值時;否則,。 false

適用於

TryGet(MessageProperties, NetworkInterfaceMessageProperty)

嘗試從指定的訊息屬性集合中取得 NetworkInterfaceMessageProperty。

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

參數

properties
MessageProperties

網路介面訊息屬性的 MessageProperties 要被檢索。

property
NetworkInterfaceMessageProperty

該方法回傳為真,networkInterfaceMessageProperty 包含一個與屬性相關的 NetworkInterfaceMessageProperty。

傳回

true當 NetworkInterfaceMessageProperty 的值由屬性取得時;否則,。 false

適用於