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
- SamlAttribute.cs
- TimeSpanStorage.cs
- SecurityTokenSerializer.cs
- XmlSchemaExternal.cs
- LeafCellTreeNode.cs
- SoundPlayer.cs
- Delay.cs
- TableLayoutStyle.cs
- TableCellAutomationPeer.cs
- FixedSchema.cs
- RetrieveVirtualItemEventArgs.cs
- DataControlLinkButton.cs
- AsymmetricSignatureFormatter.cs
- UnsafeNativeMethodsTablet.cs
- GeneralTransform3DGroup.cs
- HttpCacheVaryByContentEncodings.cs
- RtfFormatStack.cs
- PageFunction.cs
- VolatileEnlistmentState.cs
- FunctionImportElement.cs
- IdentitySection.cs
- ObjectCloneHelper.cs
- ObjectViewListener.cs
- mda.cs
- KeyManager.cs
- InternalBase.cs
- Evidence.cs
- DataViewListener.cs
- PropVariant.cs
- JpegBitmapEncoder.cs
- WebControlAdapter.cs
- StorageMappingItemLoader.cs
- ObjRef.cs
- EditingMode.cs
- coordinator.cs
- AutomationPeer.cs
- UpdateProgress.cs
- Thread.cs
- ThreadStartException.cs
- MessageBox.cs
- PackageStore.cs
- XmlSchemaComplexContentRestriction.cs
- CommandID.cs
- TrustManager.cs
- Size3DValueSerializer.cs
- TimelineGroup.cs
- _IPv4Address.cs
- CursorConverter.cs
- ExtendedProperty.cs
- Baml2006KnownTypes.cs
- SqlCacheDependencyDatabase.cs
- Block.cs
- CustomSignedXml.cs
- FixedSOMTable.cs
- FaultDescriptionCollection.cs
- RawStylusSystemGestureInputReport.cs
- CodeNamespaceImport.cs
- CodePageEncoding.cs
- Util.cs
- DnsPermission.cs
- fixedPageContentExtractor.cs
- translator.cs
- ValidationErrorEventArgs.cs
- RelationshipDetailsRow.cs
- WinInet.cs
- WebPartManagerInternals.cs
- Dictionary.cs
- ButtonChrome.cs
- XmlUrlResolver.cs
- RtfNavigator.cs
- CompilationLock.cs
- RegistryExceptionHelper.cs
- Rule.cs
- UIElementPropertyUndoUnit.cs
- InputGestureCollection.cs
- ResourceDisplayNameAttribute.cs
- EventLogEntryCollection.cs
- DrawingCollection.cs
- BooleanProjectedSlot.cs
- OpacityConverter.cs
- PropertyCollection.cs
- PKCS1MaskGenerationMethod.cs
- RequestCacheManager.cs
- altserialization.cs
- MetadataItem_Static.cs
- CodeTypeReferenceExpression.cs
- ObjectKeyFrameCollection.cs
- AtlasWeb.Designer.cs
- PointIndependentAnimationStorage.cs
- CurrentTimeZone.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- srgsitem.cs
- CursorConverter.cs
- XmlEnumAttribute.cs
- TextTreeDeleteContentUndoUnit.cs
- ReadOnlyAttribute.cs
- DataGridViewCell.cs
- Formatter.cs
- SmtpTransport.cs
- TransactionProtocolConverter.cs