TelemetryContext.TryGetRawObject(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the raw object with the given key.
Objects retrieved here are not automatically serialized and sent to the backend.
They are shared (i.e not cloned) if multiple sinks are configured, so sinks should treat them as read-only.
public bool TryGetRawObject (string key, out object rawObject);
member this.TryGetRawObject : string * obj -> bool
Public Function TryGetRawObject (key As String, ByRef rawObject As Object) As Boolean
Parameters
- key
- String
The key of the value to get.
- rawObject
- Object
When this method returns, contains the object that has the specified key, or the default value of the type if the operation failed.
Returns
true if the key was found; otherwise, false.
Remarks
This method is not thread-safe. Objects should be stored from Collectors or TelemetryInitializers that are run synchronously.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기