EventData.Properties Property
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.
The set of free-form properties which may be used for associating metadata with the event that is meaningful within the application context.
public System.Collections.Generic.IDictionary<string,object> Properties { get; }
member this.Properties : System.Collections.Generic.IDictionary<string, obj>
Public ReadOnly Property Properties As IDictionary(Of String, Object)
Property Value
Exceptions
Occurs when the EventData is serialized for transport when an unsupported type is used as a property.
Examples
var eventData = new EventData(serializedTelemetryData);
eventData.Properties["eventType"] = "com.microsoft.azure.monitoring.EtlEvent";
Remarks
A common use case for Properties is to associate serialization hints for the EventBody as an aid to consumers who wish to deserialize the binary data when the ContentType alone does not offer sufficient context.
The following types are supported:
- string
- bool
- byte
- sbyte
- short
- ushort
- int
- uint
- long
- ulong
- float
- decimal
- double
- char
- Guid
- DateTime
- DateTimeOffset
- Stream
- Uri
- TimeSpan
- byte[]
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기