Activity.Tags 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.
Gets a collection of key/value pairs that represent information that will be logged along with the Activity to the logging system.
public:
property System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ Tags { System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::String ^>> ^ get(); };
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string?>> Tags { get; }
public System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> Tags { get; }
member this.Tags : seq<System.Collections.Generic.KeyValuePair<string, string>>
Public ReadOnly Property Tags As IEnumerable(Of KeyValuePair(Of String, String))
Property Value
Information that will be logged along with the Activity to the logging system.
Remarks
In .NET 5 and later versions, the order of the tags in the list matches the order in which they're added to the list. In previous versions, the order is reversed, that is, the first item added is last in the list.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈