共用方式為


DiagnosticListener.Write(String, Object) 方法

定義

記錄通知。

public:
 override void Write(System::String ^ name, System::Object ^ value);
public:
 override void Write(System::String ^ name, System::Object ^ parameters);
public override void Write (string name, object? value);
public override void Write (string name, object value);
public override void Write (string name, object parameters);
override this.Write : string * obj -> unit
override this.Write : string * obj -> unit
Public Overrides Sub Write (name As String, value As Object)
Public Overrides Sub Write (name As String, parameters As Object)

參數

name
String

要記錄的事件名稱。

valueparameters
Object

代表事件承載的物件。

備註

如需詳細資訊,請參閱 DiagnosticSource.Write 方法。

適用於