A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.activity.-ctor below:

Activity(String) Constructor (System.Diagnostics) | Microsoft Learn

Activity(String) Constructor Definition

Initializes a new instance of the Activity class.

public:
 Activity(System::String ^ operationName);
public Activity(string operationName);
new System.Diagnostics.Activity : string -> System.Diagnostics.Activity
Public Sub New (operationName As String)
Parameters
operationName
String

The name of the operation.

Remarks

Note that Activity has a "builder" pattern: you call the constructor, a number of Set* and Add* APIs, and then call Start() to build the activity. You must call Start() before using the new instance.

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this article

Was this page helpful?


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4