ExceptionDispatchInfo.SetCurrentStackTrace(Exception) Yöntem

Tanım

Geçerli yığın izlemesini belirtilen Exception örnekte depolar.

public:
 static Exception ^ SetCurrentStackTrace(Exception ^ source);
public static Exception SetCurrentStackTrace(Exception source);
static member SetCurrentStackTrace : Exception -> Exception
Public Shared Function SetCurrentStackTrace (source As Exception) As Exception

Parametreler

source
Exception

Kaldırılmamış özel durum.

Döndürülenler

Yığın source izlemesinin dahil olduğu özel durum örneği.

Özel durumlar

Bağımsız source değişken: null.

Bağımsız source değişken daha önce oluşturuldu veya daha önce içinde bir yığın izlemesi depolandı.

Şunlara uygulanır