NetworkInterfaceMessageProperty.TryGet Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee wordt geprobeerd de NetworkInterfaceMessageProperty op te halen uit een opgegeven bericht of verzameling berichteigenschappen.
Overloads
| Name | Description |
|---|---|
| TryGet(Message, NetworkInterfaceMessageProperty) |
Probeert de NetworkInterfaceMessageProperty op te halen uit de eigenschappen van een opgegeven bericht. |
| TryGet(MessageProperties, NetworkInterfaceMessageProperty) |
Probeert de NetworkInterfaceMessageProperty op te halen uit een opgegeven verzameling berichteigenschappen. |
TryGet(Message, NetworkInterfaceMessageProperty)
Probeert de NetworkInterfaceMessageProperty op te halen uit de eigenschappen van een opgegeven bericht.
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
Het bericht waaruit de eigenschappen van het netwerkinterfacebericht moeten worden opgehaald.
- property
- NetworkInterfaceMessageProperty
De methode retourneert true, networkInterfaceMessageProperty bevat een NetworkInterfaceMessageProperty die is gekoppeld aan het bericht.
Retouren
true wanneer een waarde voor de NetworkInterfaceMessageproperty wordt verkregen uit het bericht; anders, false.
Van toepassing op
TryGet(MessageProperties, NetworkInterfaceMessageProperty)
Probeert de NetworkInterfaceMessageProperty op te halen uit een opgegeven verzameling berichteigenschappen.
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
De MessageProperties waaruit de eigenschappen van de netwerkinterfaces moeten worden opgehaald.
- property
- NetworkInterfaceMessageProperty
De methode retourneert true, networkInterfaceMessageProperty bevat een NetworkInterfaceMessageProperty die is gekoppeld aan de eigenschappen.
Retouren
true wanneer een waarde voor networkInterfaceMessageProperty wordt verkregen uit de eigenschappen; anders, false.