Bagikan melalui


NetworkInterfaceMessageProperty.TryGet Metode

Definisi

Mencoba mendapatkan NetworkInterfaceMessageProperty dari pesan atau kumpulan properti pesan tertentu.

Overload

TryGet(Message, NetworkInterfaceMessageProperty)

Mencoba mendapatkan NetworkInterfaceMessageProperty dari properti pesan tertentu.

TryGet(MessageProperties, NetworkInterfaceMessageProperty)

Upaya untuk mendapatkan NetworkInterfaceMessageProperty dari kumpulan properti pesan tertentu.

TryGet(Message, NetworkInterfaceMessageProperty)

Mencoba mendapatkan NetworkInterfaceMessageProperty dari properti pesan tertentu.

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

Parameter

message
Message

Pesan dari mana properti pesan antarmuka jaringan akan diambil.

property
NetworkInterfaceMessageProperty

Metode mengembalikan true, networkInterfaceMessageProperty berisi NetworkInterfaceMessageProperty yang terkait dengan pesan.

Mengembalikan

true ketika nilai untuk NetworkInterfaceMessageproperty diperoleh dari pesan; jika tidak, false.

Berlaku untuk

TryGet(MessageProperties, NetworkInterfaceMessageProperty)

Upaya untuk mendapatkan NetworkInterfaceMessageProperty dari kumpulan properti pesan tertentu.

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

Parameter

properties
MessageProperties

MessageProperties tempat properti pesan antarmuka jaringan akan diambil.

property
NetworkInterfaceMessageProperty

Metode mengembalikan true, networkInterfaceMessageProperty berisi NetworkInterfaceMessageProperty yang terkait dengan properti.

Mengembalikan

true ketika nilai untuk NetworkInterfaceMessageProperty diperoleh dari properti; jika tidak, false.

Berlaku untuk