DiagnosticSource.StopActivity Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| StopActivity(Activity, Object) |
Stoppar den angivna Activity, underhåller den globala Current aktiviteten och meddelar konsumenterna att den Activity stoppades. |
| StopActivity<T>(Activity, T) |
Startar en Activity och skriver en starthändelse. |
StopActivity(Activity, Object)
public:
void StopActivity(System::Diagnostics::Activity ^ activity, System::Object ^ args);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")]
public void StopActivity(System.Diagnostics.Activity activity, object? args);
public void StopActivity(System.Diagnostics.Activity activity, object? args);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")]
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")]
public void StopActivity(System.Diagnostics.Activity activity, object? args);
public void StopActivity(System.Diagnostics.Activity activity, object args);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")>]
member this.StopActivity : System.Diagnostics.Activity * obj -> unit
member this.StopActivity : System.Diagnostics.Activity * obj -> unit
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The type of object being written to DiagnosticSource cannot be discovered statically.")>]
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("DiagnosticSource may require creating new generic types or methods, which requires creating code at runtime. This may not work when AOT compiling.")>]
member this.StopActivity : System.Diagnostics.Activity * obj -> unit
Public Sub StopActivity (activity As Activity, args As Object)
Parametrar
- activity
- Activity
Aktiviteten som ska stoppas.
- args
- Object
Ett objekt som representerar värdet som skickas som en nyttolast för händelsen.
- Attribut
Kommentarer
Producenter kan skicka ytterligare information till konsumenten i nyttolasten.
Konsumenter kan komma åt Activity.Current att lägga till kontext och/eller utöka telemetri.
Se även
Gäller för
StopActivity<T>(Activity, T)
Startar en Activity och skriver en starthändelse.
public:
generic <typename T>
void StopActivity(System::Diagnostics::Activity ^ activity, T args);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")]
public void StopActivity<T>(System.Diagnostics.Activity activity, T args);
public void StopActivity<T>(System.Diagnostics.Activity activity, T args);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Only the properties of the T type will be preserved. Properties of referenced types and properties of derived types may be trimmed.")>]
member this.StopActivity : System.Diagnostics.Activity * 'T -> unit
member this.StopActivity : System.Diagnostics.Activity * 'T -> unit
Public Sub StopActivity(Of T) (activity As Activity, args As T)
Typparametrar
- T
Typen av värde som skickas som en nyttolast för händelsen.
Parametrar
- args
- T
Ett objekt som representerar värdet som skickas som en nyttolast för händelsen.
- Attribut