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
- XsdDuration.cs
- COM2IProvidePropertyBuilderHandler.cs
- DataSourceViewSchemaConverter.cs
- RotationValidation.cs
- GridViewRow.cs
- WebEvents.cs
- DiscoveryClientDocuments.cs
- ManualResetEvent.cs
- MimeReturn.cs
- OutOfMemoryException.cs
- MenuScrollingVisibilityConverter.cs
- StringFunctions.cs
- SemanticBasicElement.cs
- MonthCalendarDesigner.cs
- SocketAddress.cs
- VirtualPathUtility.cs
- KerberosSecurityTokenProvider.cs
- LocalizableResourceBuilder.cs
- ConfigurationErrorsException.cs
- DPAPIProtectedConfigurationProvider.cs
- XmlSchemaObject.cs
- DynamicILGenerator.cs
- StringPropertyBuilder.cs
- Geometry.cs
- CalendarDay.cs
- MouseGesture.cs
- CurrentTimeZone.cs
- ElementUtil.cs
- KeyboardDevice.cs
- DataPager.cs
- OracleSqlParser.cs
- SafePointer.cs
- SubstitutionResponseElement.cs
- EdmItemCollection.OcAssemblyCache.cs
- DbXmlEnabledProviderManifest.cs
- ImplicitInputBrush.cs
- StructuredType.cs
- XmlValueConverter.cs
- DataSourceView.cs
- Monitor.cs
- GACIdentityPermission.cs
- Nullable.cs
- AudioException.cs
- StringConverter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- EnumerableCollectionView.cs
- TraceRecord.cs
- GlobalDataBindingHandler.cs
- WSSecurityXXX2005.cs
- SettingsContext.cs
- OdbcConnectionFactory.cs
- Schema.cs
- HostingEnvironmentException.cs
- LexicalChunk.cs
- ClientCredentials.cs
- NetTcpSection.cs
- DataServiceProcessingPipelineEventArgs.cs
- __Error.cs
- AssemblyAttributes.cs
- NameValueSectionHandler.cs
- EntityDataSourceReferenceGroup.cs
- AudienceUriMode.cs
- ModifierKeysConverter.cs
- ToolStripLocationCancelEventArgs.cs
- WorkflowServiceHostFactory.cs
- WebPartZoneCollection.cs
- ProcessStartInfo.cs
- FacetDescriptionElement.cs
- TextProperties.cs
- TextBoxBaseDesigner.cs
- PenThread.cs
- RuntimeArgumentHandle.cs
- SessionStateModule.cs
- SystemResourceKey.cs
- Group.cs
- FontStretch.cs
- Propagator.JoinPropagator.cs
- FacetValueContainer.cs
- ByeOperationAsyncResult.cs
- XmlIterators.cs
- AppearanceEditorPart.cs
- sqlinternaltransaction.cs
- VerificationAttribute.cs
- SqlBuilder.cs
- ISAPIApplicationHost.cs
- XmlAnyElementAttributes.cs
- CompilerErrorCollection.cs
- DragCompletedEventArgs.cs
- UInt32Converter.cs
- CommandConverter.cs
- DocumentEventArgs.cs
- ControlBuilder.cs
- Properties.cs
- ErrorHandler.cs
- PreProcessor.cs
- InputBuffer.cs
- HandleValueEditor.cs
- SQLSingle.cs
- ToolStripItemImageRenderEventArgs.cs
- MessageAction.cs