Activity(String) Construtor
Definição
public:
Activity(System::String ^ operationName);
public Activity (string operationName);
new System.Diagnostics.Activity : string -> System.Diagnostics.Activity
Public Sub New (operationName As String)
Parâmetros
- operationName
- String
O nome da operação.The name of the operation.
Comentários
Observe que Activity tem um padrão de "Construtor": você chama o construtor, um número Set* de Add* APIs e, em seguida, chama Start() para criar a atividade.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. Você deve chamar Start() antes de usar a nova instância.You must call Start() before using the new instance.