Redigera

Dela via


NetworkInterfaceMessageProperty.TryGet Method

Definition

Attempts to get the NetworkInterfaceMessageProperty from a specified message or collection of message properties.

Overloads

TryGet(Message, NetworkInterfaceMessageProperty)

Attempts to get the NetworkInterfaceMessageProperty from the properties of a specified message.

TryGet(MessageProperties, NetworkInterfaceMessageProperty)

Attempts to get the NetworkInterfaceMessageProperty from a specified collection of message properties.

TryGet(Message, NetworkInterfaceMessageProperty)

Attempts to get the NetworkInterfaceMessageProperty from the properties of a specified message.

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

Parameters

message
Message

The message from which the network interface message properties are to be retrieved.

property
NetworkInterfaceMessageProperty

The method returns true, networkInterfaceMessageProperty contains a NetworkInterfaceMessageProperty that is associated with the message.

Returns

true when a value for the NetworkInterfaceMessageproperty is obtained from the message; otherwise, false.

Applies to

TryGet(MessageProperties, NetworkInterfaceMessageProperty)

Attempts to get the NetworkInterfaceMessageProperty from a specified collection of message properties.

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

Parameters

properties
MessageProperties

The MessageProperties from which the network interfaces message properties are to be retrieved.

property
NetworkInterfaceMessageProperty

The method returns true, networkInterfaceMessageProperty contains a NetworkInterfaceMessageProperty that is associated with the properties.

Returns

true when a value for the NetworkInterfaceMessageProperty is obtained from the properties; otherwise, false.

Applies to