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 の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示