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
- ProtocolsConfigurationHandler.cs
- Latin1Encoding.cs
- AdRotator.cs
- ProcessManager.cs
- CaseCqlBlock.cs
- shaperfactoryquerycachekey.cs
- DataServiceRequestOfT.cs
- CustomError.cs
- Compiler.cs
- ReverseInheritProperty.cs
- base64Transforms.cs
- RawUIStateInputReport.cs
- ItemContainerGenerator.cs
- cookiecontainer.cs
- SoapEnumAttribute.cs
- UIElementParagraph.cs
- CfgParser.cs
- FloaterBaseParaClient.cs
- DataFieldEditor.cs
- DispatcherOperation.cs
- DesigntimeLicenseContext.cs
- DataControlLinkButton.cs
- TypeValidationEventArgs.cs
- BitmapEffectGroup.cs
- ObservableCollection.cs
- PolygonHotSpot.cs
- DriveInfo.cs
- recordstatefactory.cs
- WMICapabilities.cs
- XmlElementList.cs
- AttributeXamlType.cs
- Helpers.cs
- ValidationRuleCollection.cs
- SubpageParaClient.cs
- EditorZone.cs
- MailFileEditor.cs
- ToolBar.cs
- ButtonBaseAutomationPeer.cs
- SmtpCommands.cs
- ObjRef.cs
- DataGridViewTextBoxCell.cs
- DbBuffer.cs
- ResourceProperty.cs
- SingleStorage.cs
- RuleSettings.cs
- DataGridViewTopLeftHeaderCell.cs
- FullTrustAssembliesSection.cs
- Attribute.cs
- SafeHandles.cs
- ConsoleKeyInfo.cs
- SpellerHighlightLayer.cs
- KnownTypesHelper.cs
- XamlPoint3DCollectionSerializer.cs
- MethodBuilder.cs
- AssemblyNameProxy.cs
- DataContractSerializer.cs
- RegisteredScript.cs
- AppDomain.cs
- HtmlString.cs
- Span.cs
- FormsIdentity.cs
- RequestCachingSection.cs
- SingleTagSectionHandler.cs
- SqlConnectionString.cs
- HttpPostedFileWrapper.cs
- NullRuntimeConfig.cs
- ValidatingReaderNodeData.cs
- TemplateXamlTreeBuilder.cs
- FormView.cs
- XsltContext.cs
- shaperfactoryquerycacheentry.cs
- UserValidatedEventArgs.cs
- CodeConditionStatement.cs
- TypePropertyEditor.cs
- X509CertificateValidator.cs
- ChildrenQuery.cs
- FolderBrowserDialog.cs
- LinearGradientBrush.cs
- DocumentXPathNavigator.cs
- ReceiveDesigner.xaml.cs
- PackageFilter.cs
- TypeSemantics.cs
- DataRelation.cs
- XamlPointCollectionSerializer.cs
- ValuePatternIdentifiers.cs
- versioninfo.cs
- BooleanSwitch.cs
- EmptyEnumerator.cs
- SplitterEvent.cs
- HttpApplication.cs
- WSSecurityPolicy12.cs
- BamlMapTable.cs
- CodeNamespaceCollection.cs
- EntityDescriptor.cs
- CatalogZoneBase.cs
- CustomTypeDescriptor.cs
- SingleTagSectionHandler.cs
- InternalPermissions.cs
- SchemaLookupTable.cs
- AssemblyInfo.cs