Share via


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

从中检索网络接口消息属性的“消息属性”“。

property
NetworkInterfaceMessageProperty

方法返回 true, “networkInterfaceMessageProperty” 包含一个与属性关联的 “NetworkInterfaceMessageProperty”。

返回

如果从这些属性中获取 NetworkInterfaceMessageproperty 的值,则为 true, 否则为 false

适用于