PublishedEvent.FieldList.TryGetValue(String, PublishedEventField) 메서드

정의

지정한 키와 연결된 값을 가져옵니다.

public:
 bool TryGetValue(System::String ^ fieldName, [Runtime::InteropServices::Out] Microsoft::SqlServer::XEvent::Linq::PublishedEventField ^ % value);
public bool TryGetValue (string fieldName, out Microsoft.SqlServer.XEvent.Linq.PublishedEventField value);
member this.TryGetValue : string * PublishedEventField -> bool
Public Function TryGetValue (fieldName As String, ByRef value As PublishedEventField) As Boolean

매개 변수

fieldName
String

검색할 필드 이름입니다.

value
PublishedEventField

이 메서드가 반환될 때 지정한 키가 있는 경우 해당 키와 연결된 필드를 포함합니다. 그렇지 않으면 값 매개 변수 형식의 기본 값을 포함합니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반환

이벤트에 지정한 열을 가진 필드가 포함되면 true이고, 그렇지 않으면 false입니다.

적용 대상