void AddErrorResult(XPathException ex) { ListViewItem item = new ListViewItem(string.Concat(StringParser.Parse("${res:ICSharpCode.XmlEditor.XPathQueryPad.XPathLabel}"), " ", ex.Message), ErrorImageIndex); item.Tag = ex; xPathResultsListView.Items.Add(item); }
public void DenyUnrestricted () { // can we call everything without a SecurityException ? XPathException xe = new XPathException (String.Empty, null); Assert.IsNotNull (xe.Message, "Message"); }
void IPscxErrorHandler.WriteXPathExpressionError(string xpathExpression, XPathException ex) { ThrowTerminatingError(new ErrorRecord(ex, "InvalidXPathExpression", ErrorCategory.InvalidArgument, xpathExpression)); }
public void PermitOnlySerializationFormatter_GetObjectData () { StreamingContext sc = new StreamingContext (StreamingContextStates.All); XPathException xe = new XPathException (String.Empty, null); xe.GetObjectData (null, sc); }