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
- PermissionListSet.cs
- AlternateView.cs
- XmlSchemaGroupRef.cs
- Publisher.cs
- MessageDecoder.cs
- HttpProcessUtility.cs
- HwndHostAutomationPeer.cs
- ConfigXmlComment.cs
- IfJoinedCondition.cs
- AmbientEnvironment.cs
- ProcessModelSection.cs
- ContextMenu.cs
- InfoCardSymmetricCrypto.cs
- Pkcs9Attribute.cs
- DesignerSerializationOptionsAttribute.cs
- ContractDescription.cs
- TriState.cs
- ContainerActivationHelper.cs
- SecurityContextSecurityToken.cs
- Signature.cs
- RuleCache.cs
- AuthenticationModuleElementCollection.cs
- followingsibling.cs
- XamlPoint3DCollectionSerializer.cs
- FileStream.cs
- LinearGradientBrush.cs
- DialogDivider.cs
- DrawingCollection.cs
- SafeFileMapViewHandle.cs
- TypeDescriptor.cs
- GlobalizationSection.cs
- DeploymentSection.cs
- TextBlock.cs
- ButtonDesigner.cs
- TypeToken.cs
- HtmlInputImage.cs
- HTTPNotFoundHandler.cs
- SessionPageStateSection.cs
- CreatingCookieEventArgs.cs
- SynchronizationFilter.cs
- FixedBufferAttribute.cs
- SslStream.cs
- DataRelationPropertyDescriptor.cs
- ReachDocumentSequenceSerializer.cs
- SecurityTokenSerializer.cs
- PathTooLongException.cs
- HtmlAnchor.cs
- ControlSerializer.cs
- RuntimeConfigLKG.cs
- PipeSecurity.cs
- DbDataAdapter.cs
- NotImplementedException.cs
- ApplicationInfo.cs
- ContextMenuStrip.cs
- Matrix.cs
- XmlAnyElementAttributes.cs
- PaintValueEventArgs.cs
- TextLine.cs
- WorkflowViewElement.cs
- InstanceKeyNotReadyException.cs
- ServiceInstanceProvider.cs
- WinFormsUtils.cs
- ImageSourceValueSerializer.cs
- TemplateNameScope.cs
- ThreadAbortException.cs
- TimeSpanSecondsConverter.cs
- WebPartCloseVerb.cs
- XmlSchemaDocumentation.cs
- DeclaredTypeElement.cs
- ISAPIWorkerRequest.cs
- RowUpdatedEventArgs.cs
- AudioLevelUpdatedEventArgs.cs
- CanExecuteRoutedEventArgs.cs
- SemaphoreSecurity.cs
- XmlElementAttribute.cs
- MaterialGroup.cs
- MsmqIntegrationOutputChannel.cs
- StringPropertyBuilder.cs
- ReadOnlyHierarchicalDataSourceView.cs
- SimpleType.cs
- DbCommandDefinition.cs
- HandleCollector.cs
- CalendarBlackoutDatesCollection.cs
- XmlEnumAttribute.cs
- ValidatorCollection.cs
- MailWriter.cs
- DataGridViewTextBoxColumn.cs
- EditorZoneBase.cs
- ConstraintStruct.cs
- TextTreeDeleteContentUndoUnit.cs
- FormatException.cs
- ContentIterators.cs
- ClusterSafeNativeMethods.cs
- PageBreakRecord.cs
- ExtendedTransformFactory.cs
- AssociativeAggregationOperator.cs
- mediaclock.cs
- TemplatedWizardStep.cs
- HtmlDocument.cs
- EntityDataSourceWizardForm.cs