ContextMessageProperty.TryGet 메서드

정의

지정된 메시지 또는 메시지 속성 컬렉션에서 가져오기 ContextMessageProperty 를 시도합니다.

오버로드

Name Description
TryGet(Message, ContextMessageProperty)

지정된 메시지의 ContextMessageProperty 속성에서 가져오기를 시도합니다.

TryGet(MessageProperties, ContextMessageProperty)

지정된 메시지 속성 컬렉션에서 가져오기를 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

매개 변수

message
Message

Message 컨텍스트 메시지 속성을 검색할 원본입니다.

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그렇지 않으면 .

적용 대상