CorrelationDataMessageProperty.TryGet Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to get the attached CorrelationDataMessageProperty from a message or a collection of message properties.
Overloads
TryGet(Message, CorrelationDataMessageProperty) |
Attempts to get a CorrelationDataMessageProperty from the specified message's Properties. |
TryGet(MessageProperties, CorrelationDataMessageProperty) |
Attempts to get the CorrelationDataMessageProperty from the specified message properties. |
TryGet(Message, CorrelationDataMessageProperty)
Attempts to get a CorrelationDataMessageProperty from the specified message's Properties.
public:
static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationDataMessageProperty ^ % property);
public static bool TryGet (System.ServiceModel.Channels.Message message, out System.ServiceModel.Channels.CorrelationDataMessageProperty property);
static member TryGet : System.ServiceModel.Channels.Message * CorrelationDataMessageProperty -> bool
Public Shared Function TryGet (message As Message, ByRef property As CorrelationDataMessageProperty) As Boolean
Parameters
- message
- Message
The message that contains the Properties to inspect.
- property
- CorrelationDataMessageProperty
When this method returns, contains the CorrelationDataMessageProperty contained the specified message's Properties; otherwise, null
. This parameter is passed uninitialized.
Returns
true
if the message's Properties property contains a CorrelationDataMessageProperty class; otherwise, false
.
Applies to
TryGet(MessageProperties, CorrelationDataMessageProperty)
Attempts to get the CorrelationDataMessageProperty from the specified message properties.
public:
static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationDataMessageProperty ^ % property);
public static bool TryGet (System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Channels.CorrelationDataMessageProperty property);
static member TryGet : System.ServiceModel.Channels.MessageProperties * CorrelationDataMessageProperty -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef property As CorrelationDataMessageProperty) As Boolean
Parameters
- properties
- MessageProperties
The message properties to inspect.
- property
- CorrelationDataMessageProperty
When this method returns, contains the CorrelationDataMessageProperty contained by the specified message properties; otherwise, null
. This parameter is passed uninitialized.
Returns
true
if the message properties contain a CorrelationDataMessageProperty; otherwise, false
.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기