Proprietà StackFrame2.UserCode
Ottiene un valore che indica se il frame è codice utente, noto anche come My Code. Proprietà di sola lettura.
Spazio dei nomi: EnvDTE90a
Assembly: EnvDTE90a (in EnvDTE90a.dll)
Sintassi
'Dichiarazione
ReadOnly Property UserCode As Boolean
bool UserCode { get; }
property bool UserCode {
bool get ();
}
abstract UserCode : bool with get
function get UserCode () : boolean
Valore proprietà
Tipo: Boolean
Restituisce true se il frame è codice utente; false se non lo è.Restituisce sempre true per il codice nativo.
Note
Il codice utente è definito dalla funzionalità Just My Code. Just My Code supporta solo il debug gestito. Poiché Just My Code non supporta il debug nativo, il codice nativo è sempre codice utente per definizione.
Una raccolta StackFrames restituisce tutti i frame indipendentemente dal fatto che Just My Code è attivato. È possibile utilizzare questa proprietà per determinare quali frame sono codice utente.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.