CorrelationMessageProperty.TryGet 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
메시지 또는 메시지 속성 컬렉션에서 첨부 CorrelationMessageProperty 된 메시지를 가져옵니다.
오버로드
| Name | Description |
|---|---|
| TryGet(Message, CorrelationMessageProperty) |
지정된 메시지의 .에서 가져오기를 CorrelationMessageProperty 시도합니다 Properties. |
| TryGet(MessageProperties, CorrelationMessageProperty) |
지정된 메시지 속성에서 가져오기 CorrelationMessageProperty 를 시도합니다. |
TryGet(Message, CorrelationMessageProperty)
지정된 메시지의 .에서 가져오기를 CorrelationMessageProperty 시도합니다 Properties.
public:
static bool TryGet(System::ServiceModel::Channels::Message ^ message, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationMessageProperty ^ % property);
public static bool TryGet(System.ServiceModel.Channels.Message message, out System.ServiceModel.Channels.CorrelationMessageProperty property);
static member TryGet : System.ServiceModel.Channels.Message * CorrelationMessageProperty -> bool
Public Shared Function TryGet (message As Message, ByRef property As CorrelationMessageProperty) As Boolean
매개 변수
- message
- Message
검사할 메시지가 들어 있는 Properties 메시지입니다.
- property
- CorrelationMessageProperty
이 메서드가 반환될 때 지정된 메시지가 있으면 포함된 메시지를 CorrelationMessageProperty 포함합니다Properties. 그렇지 않으면 null. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.
반품
적용 대상
TryGet(MessageProperties, CorrelationMessageProperty)
지정된 메시지 속성에서 가져오기 CorrelationMessageProperty 를 시도합니다.
public:
static bool TryGet(System::ServiceModel::Channels::MessageProperties ^ properties, [Runtime::InteropServices::Out] System::ServiceModel::Channels::CorrelationMessageProperty ^ % property);
public static bool TryGet(System.ServiceModel.Channels.MessageProperties properties, out System.ServiceModel.Channels.CorrelationMessageProperty property);
static member TryGet : System.ServiceModel.Channels.MessageProperties * CorrelationMessageProperty -> bool
Public Shared Function TryGet (properties As MessageProperties, ByRef property As CorrelationMessageProperty) As Boolean
매개 변수
- properties
- MessageProperties
검사할 메시지 속성입니다.
- property
- CorrelationMessageProperty
이 메서드가 반환될 때 지정된 메시지 속성에 포함된 메시지 속성(있는 경우)이 포함 CorrelationMessageProperty 됩니다. 그렇지 않으면 null. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.
반품
true 메시지 속성에 ;가 포함되어 있으면 CorrelationMessageProperty이고, false그렇지 않으면 .