Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Security / XMLSyntaxException.cs / 1 / 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
- Int32AnimationUsingKeyFrames.cs
- StyleModeStack.cs
- NamespaceInfo.cs
- EntitySetRetriever.cs
- BooleanAnimationUsingKeyFrames.cs
- ControlFilterExpression.cs
- MessagingActivityHelper.cs
- BatchParser.cs
- ReadOnlyDataSource.cs
- EventRecordWrittenEventArgs.cs
- PenContext.cs
- ToolStripPanelCell.cs
- SafeLocalAllocation.cs
- CqlIdentifiers.cs
- DockEditor.cs
- FeatureManager.cs
- WindowsAltTab.cs
- BindingNavigatorDesigner.cs
- CultureInfoConverter.cs
- XmlChoiceIdentifierAttribute.cs
- CommonRemoteMemoryBlock.cs
- EntityContainerEntitySet.cs
- PictureBox.cs
- CombinedGeometry.cs
- DecoratedNameAttribute.cs
- Attributes.cs
- XsltQilFactory.cs
- DetailsViewDeleteEventArgs.cs
- ExpiredSecurityTokenException.cs
- SafeCryptoHandles.cs
- BaseCodeDomTreeGenerator.cs
- DataSvcMapFile.cs
- CqlParserHelpers.cs
- SqlNodeAnnotation.cs
- FontConverter.cs
- TimelineCollection.cs
- ErrorActivity.cs
- DrawListViewSubItemEventArgs.cs
- XmlNavigatorFilter.cs
- NamespaceList.cs
- WebCategoryAttribute.cs
- WebHeaderCollection.cs
- ConfigUtil.cs
- BuildResultCache.cs
- CollectionBase.cs
- PromptEventArgs.cs
- OwnerDrawPropertyBag.cs
- SqlNodeAnnotation.cs
- AssemblyFilter.cs
- EmptyEnumerable.cs
- ForeignKeyConstraint.cs
- WebBaseEventKeyComparer.cs
- SoapTypeAttribute.cs
- BitmapEffectState.cs
- NativeCppClassAttribute.cs
- ModelFunctionTypeElement.cs
- WebPartDisplayModeEventArgs.cs
- HttpListenerException.cs
- SchemaTypeEmitter.cs
- DesignerActionUIStateChangeEventArgs.cs
- WebErrorHandler.cs
- Pointer.cs
- XmlWriterSettings.cs
- Visual3DCollection.cs
- MetadataItemEmitter.cs
- OrderByBuilder.cs
- SymbolPair.cs
- XNodeNavigator.cs
- CqlLexer.cs
- TypedReference.cs
- JsonCollectionDataContract.cs
- PrintDialog.cs
- TreeViewImageIndexConverter.cs
- EncryptedPackageFilter.cs
- MDIControlStrip.cs
- WebPartManager.cs
- COM2ExtendedTypeConverter.cs
- DownloadProgressEventArgs.cs
- HttpProfileGroupBase.cs
- CompilerCollection.cs
- ModelFactory.cs
- PageMediaSize.cs
- EdmFunctions.cs
- TextTrailingWordEllipsis.cs
- VirtualPath.cs
- _BufferOffsetSize.cs
- CodeMemberProperty.cs
- QilXmlWriter.cs
- Char.cs
- ListViewGroup.cs
- WindowsGraphicsCacheManager.cs
- HealthMonitoringSection.cs
- FlowDocumentReader.cs
- SignedInfo.cs
- XmlTextReaderImplHelpers.cs
- CngProperty.cs
- RegexTypeEditor.cs
- HostingPreferredMapPath.cs
- FileLoadException.cs
- NameSpaceExtractor.cs