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