Proprietà Error.ErrorCode
Ottiene o imposta il codice di errore di un oggetto ErrorObject.
Questa proprietà non è compatibile con CLS.
Spazio dei nomi: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in microsoft.office.interop.infopath.semitrust.dll)
Sintassi
<DispIdAttribute(5)> _
Property ErrorCode As Integer
Dim instance As Error
Dim value As Integer
value = instance.ErrorCode
instance.ErrorCode = value
[DispIdAttribute(5)]
int ErrorCode { get; set; }
Osservazioni
![]() |
---|
Possono accedere a questo membro solo moduli eseguiti nello stesso dominio del modulo aperto oppure moduli a cui sono state concesse autorizzazioni tra domini. |
Esempio
Nell'esempio seguente, la proprietà ErrorCode dell'oggetto Error viene utilizzata per visualizzare il numero di codice di un errore in una finestra di messaggio:
ErrorObject er = thisXDocument.Errors[0];
IXMLDOMNode myNode = er.Node;
thisXDocument.UI.Alert("this is the error code: " + er.ErrorCode);
Vedere anche
Riferimenti
Interfaccia Error
Membri Error
Spazio dei nomi Microsoft.Office.Interop.InfoPath.SemiTrust