Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- QualificationDataItem.cs
- ToolBarTray.cs
- Iis7Helper.cs
- ClientScriptItem.cs
- SerializationUtility.cs
- UserControl.cs
- XpsTokenContext.cs
- SqlRowUpdatedEvent.cs
- EntitySet.cs
- OleDbDataAdapter.cs
- MemoryPressure.cs
- SimpleFileLog.cs
- DisplayInformation.cs
- CodeBlockBuilder.cs
- MetadataWorkspace.cs
- PersonalizableAttribute.cs
- ContentPresenter.cs
- Decorator.cs
- PackWebResponse.cs
- X509CertificateInitiatorClientCredential.cs
- XmlUtf8RawTextWriter.cs
- StringDictionary.cs
- CollectionBuilder.cs
- EntityClassGenerator.cs
- Scene3D.cs
- NavigationWindowAutomationPeer.cs
- WmfPlaceableFileHeader.cs
- RequestQueryProcessor.cs
- WindowsFormsEditorServiceHelper.cs
- DBConcurrencyException.cs
- Thread.cs
- KeyBinding.cs
- TableSectionStyle.cs
- StreamInfo.cs
- ViewBox.cs
- OletxCommittableTransaction.cs
- AtomMaterializer.cs
- UserPreferenceChangedEventArgs.cs
- SoapIncludeAttribute.cs
- SqlAliasesReferenced.cs
- CodeTypeReferenceCollection.cs
- _SafeNetHandles.cs
- NamespaceMapping.cs
- XmlCustomFormatter.cs
- AvtEvent.cs
- IgnorePropertiesAttribute.cs
- SimpleWebHandlerParser.cs
- CredentialCache.cs
- DrawingServices.cs
- HttpRuntime.cs
- DataControlFieldCell.cs
- StaticContext.cs
- FilterEventArgs.cs
- Point3DAnimationBase.cs
- ReadonlyMessageFilter.cs
- RadioButton.cs
- SafeProcessHandle.cs
- EditingCommands.cs
- TransactionalPackage.cs
- _UncName.cs
- CreateUserErrorEventArgs.cs
- ExpressionBuilderCollection.cs
- Model3DCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- LongTypeConverter.cs
- Part.cs
- CodeNamespace.cs
- RuleSetDialog.cs
- Size.cs
- CssTextWriter.cs
- LZCodec.cs
- XmlBindingWorker.cs
- ActivityExecutorSurrogate.cs
- UIPermission.cs
- ILGen.cs
- ProviderBase.cs
- CompModSwitches.cs
- SchemaImporterExtensionElementCollection.cs
- SupportingTokenProviderSpecification.cs
- AdjustableArrowCap.cs
- FrameworkElementFactoryMarkupObject.cs
- WindowsFormsSectionHandler.cs
- TdsParserStaticMethods.cs
- sqlser.cs
- Vertex.cs
- Floater.cs
- WindowsBrush.cs
- TextPointer.cs
- InternalCache.cs
- IpcChannel.cs
- CalendarDayButton.cs
- ThreadExceptionDialog.cs
- TreeNodeCollection.cs
- ConnectionStringsExpressionBuilder.cs
- PropertyDescriptorCollection.cs
- Unit.cs
- XomlCompilerHelpers.cs
- Queue.cs
- ViewBox.cs
- CacheSection.cs