Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / XMLSyntaxException.cs / 1305376 / XMLSyntaxException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // namespace System.Security { using System; using System.Runtime.Serialization; using System.Globalization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] sealed public class XmlSyntaxException : SystemException { public XmlSyntaxException () : base (Environment.GetResourceString( "XMLSyntax_InvalidSyntax" )) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException (String message) : base (message) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException (String message, Exception inner) : base (message, inner) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException (int lineNumber) : base (String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "XMLSyntax_SyntaxError" ), lineNumber ) ) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException( int lineNumber, String message ) : base( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "XMLSyntax_SyntaxErrorEx" ), lineNumber, message ) ) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } internal XmlSyntaxException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // namespace System.Security { using System; using System.Runtime.Serialization; using System.Globalization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] sealed public class XmlSyntaxException : SystemException { public XmlSyntaxException () : base (Environment.GetResourceString( "XMLSyntax_InvalidSyntax" )) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException (String message) : base (message) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException (String message, Exception inner) : base (message, inner) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException (int lineNumber) : base (String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "XMLSyntax_SyntaxError" ), lineNumber ) ) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } public XmlSyntaxException( int lineNumber, String message ) : base( String.Format( CultureInfo.CurrentCulture, Environment.GetResourceString( "XMLSyntax_SyntaxErrorEx" ), lineNumber, message ) ) { SetErrorCode(__HResults.CORSEC_E_XMLSYNTAX); } internal XmlSyntaxException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuildManagerHost.cs
- basecomparevalidator.cs
- FrameworkTextComposition.cs
- RemoteWebConfigurationHost.cs
- ImageMapEventArgs.cs
- EventEntry.cs
- AsymmetricSignatureDeformatter.cs
- PropertyItemInternal.cs
- Message.cs
- Stack.cs
- TextBoxAutoCompleteSourceConverter.cs
- TableLayoutStyle.cs
- HttpStreamXmlDictionaryWriter.cs
- NextPreviousPagerField.cs
- DelayedRegex.cs
- DocumentXmlWriter.cs
- LinkButton.cs
- SecurityTokenResolver.cs
- SqlClientFactory.cs
- CmsInterop.cs
- ToolStripItem.cs
- Constraint.cs
- EnumerableCollectionView.cs
- ClientTargetCollection.cs
- ProtocolViolationException.cs
- StatusBar.cs
- SettingsAttributeDictionary.cs
- LinkLabel.cs
- ping.cs
- VirtualizingPanel.cs
- altserialization.cs
- ExpressionVisitor.cs
- ECDiffieHellmanPublicKey.cs
- WebBrowserContainer.cs
- SafeCryptoHandles.cs
- ISCIIEncoding.cs
- XmlImplementation.cs
- HashCodeCombiner.cs
- DispatchWrapper.cs
- DataListCommandEventArgs.cs
- CFGGrammar.cs
- DefaultParameterValueAttribute.cs
- ITextView.cs
- SqlSupersetValidator.cs
- CurrencyWrapper.cs
- CustomPeerResolverService.cs
- Clipboard.cs
- PolicyChain.cs
- DeferredElementTreeState.cs
- TextCollapsingProperties.cs
- EndPoint.cs
- InkPresenterAutomationPeer.cs
- StringToken.cs
- DATA_BLOB.cs
- FlowDecision.cs
- ToolStripRendererSwitcher.cs
- loginstatus.cs
- Debugger.cs
- ClipboardProcessor.cs
- TextDecorationUnitValidation.cs
- coordinatorscratchpad.cs
- VariableBinder.cs
- WmlSelectionListAdapter.cs
- HtmlCommandAdapter.cs
- RelOps.cs
- WindowManager.cs
- CheckBoxFlatAdapter.cs
- ToolboxComponentsCreatingEventArgs.cs
- HtmlInputText.cs
- WebSysDefaultValueAttribute.cs
- InternalConfigRoot.cs
- COSERVERINFO.cs
- CharAnimationBase.cs
- TypeDefinition.cs
- ImageAutomationPeer.cs
- XmlSchemas.cs
- MsiStyleLogWriter.cs
- XamlBrushSerializer.cs
- Walker.cs
- RequiredAttributeAttribute.cs
- Validator.cs
- PrtTicket_Base.cs
- TimelineCollection.cs
- AggregateException.cs
- TypefaceMap.cs
- DataKey.cs
- FormatException.cs
- ZoneLinkButton.cs
- BinaryCommonClasses.cs
- SqlReferenceCollection.cs
- Context.cs
- UrlPath.cs
- TrueReadOnlyCollection.cs
- SchemaHelper.cs
- FeatureSupport.cs
- CompilationRelaxations.cs
- MsmqDiagnostics.cs
- ISCIIEncoding.cs
- ProofTokenCryptoHandle.cs
- TimeSpanSecondsOrInfiniteConverter.cs