Share via


MessageProperties.TryGetValue(String, Object) 메서드

정의

MessageProperties가 특정 이름을 포함하는지 여부를 확인하고 해당 값을 검색합니다.

public:
 virtual bool TryGetValue(System::String ^ name, [Runtime::InteropServices::Out] System::Object ^ % value);
public bool TryGetValue (string name, out object value);
abstract member TryGetValue : string * obj -> bool
override this.TryGetValue : string * obj -> bool
Public Function TryGetValue (name As String, ByRef value As Object) As Boolean

매개 변수

name
String

찾을 요소의 이름입니다.

value
Object

찾은 요소의 값입니다.

반환

지정된 true을 가진 요소가 MessageProperties에 포함되어 있으면 name이고, 그렇지 않으면 false입니다.

적용 대상