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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기