TraceListener.TraceTransfer Yöntem

Tanım

İzleme bilgilerini, bir iletiyi, ilgili etkinlik kimliğini ve olay bilgilerini dinleyiciye özel çıktıya yazar.

public:
 virtual void TraceTransfer(System::Diagnostics::TraceEventCache ^ eventCache, System::String ^ source, int id, System::String ^ message, Guid relatedActivityId);
public virtual void TraceTransfer (System.Diagnostics.TraceEventCache? eventCache, string source, int id, string? message, Guid relatedActivityId);
public virtual void TraceTransfer (System.Diagnostics.TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId);
[System.Runtime.InteropServices.ComVisible(false)]
public virtual void TraceTransfer (System.Diagnostics.TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId);
abstract member TraceTransfer : System.Diagnostics.TraceEventCache * string * int * string * Guid -> unit
override this.TraceTransfer : System.Diagnostics.TraceEventCache * string * int * string * Guid -> unit
[<System.Runtime.InteropServices.ComVisible(false)>]
abstract member TraceTransfer : System.Diagnostics.TraceEventCache * string * int * string * Guid -> unit
override this.TraceTransfer : System.Diagnostics.TraceEventCache * string * int * string * Guid -> unit
Public Overridable Sub TraceTransfer (eventCache As TraceEventCache, source As String, id As Integer, message As String, relatedActivityId As Guid)

Parametreler

eventCache
TraceEventCache

TraceEventCache Geçerli işlem kimliğini, iş parçacığı kimliğini ve yığın izleme bilgilerini içeren bir nesne.

source
String

Çıktıyı tanımlamak için kullanılan ad, genellikle izleme olayını oluşturan uygulamanın adıdır.

id
Int32

Olayın sayısal tanımlayıcısı.

message
String

Yazılacak ileti.

relatedActivityId
Guid

Guid İlgili etkinliği tanımlayan nesne.

Öznitelikler

Açıklamalar

Önemli

Bu yöntemin uygulama kodu tarafından doğrudan çağrılması amaçlanmamıştır, çıkışa izleme verileri yazmak için , Traceve TraceSource sınıflarının Debugüyeleri tarafından çağrılır.

TraceTransfer yöntemi, ilgili izlemelerin bağıntısı için kullanılır. TraceTransfer yöntemi, eventType düzeyi olarak ayarlanmış Transfer ve iletiye eklenen bir dize olarak çağrıyı relatedActivityIdGuid işlemek için yöntemini çağırırTraceEvent.

Şunlara uygulanır

Ayrıca bkz.