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
- WebPartChrome.cs
- RoleGroupCollection.cs
- HwndSourceParameters.cs
- Renderer.cs
- BindableTemplateBuilder.cs
- CacheMemory.cs
- StringArrayConverter.cs
- SessionStateContainer.cs
- WebPartDeleteVerb.cs
- ApplicationSecurityInfo.cs
- ConnectionManagementSection.cs
- BinaryParser.cs
- TreeViewCancelEvent.cs
- AsyncSerializedWorker.cs
- StringAnimationUsingKeyFrames.cs
- DBSchemaTable.cs
- DbgCompiler.cs
- ManualResetEvent.cs
- VisualBasicImportReference.cs
- TypedDataSetSchemaImporterExtension.cs
- MonthCalendar.cs
- ListGeneralPage.cs
- DES.cs
- Converter.cs
- Internal.cs
- MetadataFile.cs
- ReflectPropertyDescriptor.cs
- VersionedStream.cs
- IdnElement.cs
- BamlTreeUpdater.cs
- MailAddressParser.cs
- SHA256Managed.cs
- DbConnectionStringBuilder.cs
- PageThemeParser.cs
- __ConsoleStream.cs
- AsyncCompletedEventArgs.cs
- SqlComparer.cs
- ToolBarButton.cs
- _NegotiateClient.cs
- FileEnumerator.cs
- StringConcat.cs
- FieldNameLookup.cs
- StatusBar.cs
- MonthCalendar.cs
- ObjectView.cs
- _NetRes.cs
- OperatingSystem.cs
- WebPartAuthorizationEventArgs.cs
- CustomSignedXml.cs
- MsmqVerifier.cs
- EntityDataSourceContextCreatingEventArgs.cs
- RegexRunnerFactory.cs
- XpsFixedDocumentReaderWriter.cs
- DSASignatureDeformatter.cs
- ListView.cs
- LingerOption.cs
- __Filters.cs
- Update.cs
- SignerInfo.cs
- EntitySet.cs
- HttpCapabilitiesBase.cs
- Cursor.cs
- Span.cs
- TileBrush.cs
- AnimationClockResource.cs
- MouseGestureConverter.cs
- PenThreadWorker.cs
- WebServiceData.cs
- SecurityState.cs
- GetReadStreamResult.cs
- safex509handles.cs
- CollectionViewSource.cs
- CompositeFontFamily.cs
- RoleManagerEventArgs.cs
- MetadataArtifactLoader.cs
- PixelFormatConverter.cs
- Console.cs
- OleDbStruct.cs
- KeyValuePair.cs
- XmlILOptimizerVisitor.cs
- OpCodes.cs
- EventProviderTraceListener.cs
- XmlSiteMapProvider.cs
- LinqExpressionNormalizer.cs
- GenericEnumerator.cs
- CodeTypeConstructor.cs
- NameNode.cs
- AsymmetricSecurityBindingElement.cs
- ASCIIEncoding.cs
- WebPartEditorCancelVerb.cs
- ToolBarButtonClickEvent.cs
- ListView.cs
- ItemCollection.cs
- QuaternionRotation3D.cs
- FilterQuery.cs
- ContentHostHelper.cs
- UserMapPath.cs
- SelectedCellsCollection.cs
- GridViewEditEventArgs.cs
- DesignerImageAdapter.cs