NetworkInterfaceMessageProperty.TryGet Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk