SampleActivity<T> Delegate
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.
A delegate that defines the signature of the ActivityListener callbacks used in the sampling process.
generic <typename T>
public delegate System::Diagnostics::ActivitySamplingResult SampleActivity(ActivityCreationOptions<T> % options);
public delegate System.Diagnostics.ActivitySamplingResult SampleActivity<T>(ref ActivityCreationOptions<T> options);
type SampleActivity<'T> = delegate of ActivityCreationOptions -> ActivitySamplingResult
Public Delegate Function SampleActivity(Of T)(ByRef options As ActivityCreationOptions(Of T)) As ActivitySamplingResult
Type Parameters
- T
The type of the requested parent to create the Activity object with. Should be either a string or an ActivityContext instance.
Parameters
- options
- ActivityCreationOptions<T>
The Activity creation options used by ActivityListener callbacks to decide creating the Activity object or not.
Return Value
An object containing the sampling results, which indicate the amount of data to collect for the related Activity.
Extension Methods
GetMethodInfo(Delegate) |
Gets an object that represents the method represented by the specified delegate. |
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈