共用方式為


NetworkInterfaceMessageProperty.TryGet 方法

定義

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

多載

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。

傳回

當 NetworkInterfaceMessageproperty 的值是從訊息取得,則為 true,否則為 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

此方法會傳回 true,networkInterfaceMessageProperty 包含和屬性相關聯的 NetworkInterfaceMessageProperty。

傳回

當 NetworkInterfaceMessageProperty 的值是從屬性取得,則為 true,否則為 false

適用於