Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / EndOfStreamException.cs / 1305376 / EndOfStreamException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: EndOfStreamException ** **[....] ** ** ** Purpose: Exception to be thrown when reading past end-of-file. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System.IO { [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class EndOfStreamException : IOException { public EndOfStreamException() : base(Environment.GetResourceString("Arg_EndOfStreamException")) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } [System.Security.SecuritySafeCritical] // auto-generated protected EndOfStreamException(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. // // ==--== /*============================================================ ** ** Class: EndOfStreamException ** **[....] ** ** ** Purpose: Exception to be thrown when reading past end-of-file. ** ** ===========================================================*/ using System; using System.Runtime.Serialization; namespace System.IO { [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public class EndOfStreamException : IOException { public EndOfStreamException() : base(Environment.GetResourceString("Arg_EndOfStreamException")) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message) : base(message) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } public EndOfStreamException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.COR_E_ENDOFSTREAM); } [System.Security.SecuritySafeCritical] // auto-generated protected EndOfStreamException(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
- FlowDocumentScrollViewer.cs
- PrintController.cs
- SolidColorBrush.cs
- TableLayoutPanel.cs
- KoreanCalendar.cs
- StringBuilder.cs
- DeclaredTypeValidator.cs
- SqlInfoMessageEvent.cs
- DataSourceCache.cs
- MsdtcWrapper.cs
- messageonlyhwndwrapper.cs
- AppDomainShutdownMonitor.cs
- RegistrySecurity.cs
- EntityDataSourceChangingEventArgs.cs
- SignedXml.cs
- XsltCompileContext.cs
- ValidationUtility.cs
- DataGridViewCellStyle.cs
- HostExecutionContextManager.cs
- AssertFilter.cs
- PerfService.cs
- ContentType.cs
- DataTableReaderListener.cs
- XmlSerializerOperationBehavior.cs
- XmlEntity.cs
- counter.cs
- HttpsTransportBindingElement.cs
- EventDrivenDesigner.cs
- PlaceHolder.cs
- EmissiveMaterial.cs
- SamlAuthenticationStatement.cs
- ControlBindingsCollection.cs
- Timer.cs
- TemplateNameScope.cs
- RequestValidator.cs
- ImpersonationOption.cs
- DecimalMinMaxAggregationOperator.cs
- SerializationEventsCache.cs
- PeerNameRecord.cs
- LocalizeDesigner.cs
- Win32MouseDevice.cs
- dataobject.cs
- HttpProtocolReflector.cs
- TypeReference.cs
- PublisherIdentityPermission.cs
- SequenceRange.cs
- EntitySqlQueryCacheKey.cs
- SerializationFieldInfo.cs
- Utils.cs
- DateTimeEditor.cs
- BitmapCodecInfoInternal.cs
- ClientScriptManager.cs
- ContextInformation.cs
- IntSecurity.cs
- SerializationObjectManager.cs
- StringComparer.cs
- SerializationHelper.cs
- ObjectDataSource.cs
- TextDecoration.cs
- IsolatedStorageFileStream.cs
- CacheRequest.cs
- MILUtilities.cs
- BitmapScalingModeValidation.cs
- ElementAction.cs
- GridViewColumnHeaderAutomationPeer.cs
- FactoryMaker.cs
- ElementMarkupObject.cs
- CaseStatement.cs
- DataGridViewTextBoxColumn.cs
- HeaderedItemsControl.cs
- NumberSubstitution.cs
- FileEnumerator.cs
- MarkedHighlightComponent.cs
- AttributeEmitter.cs
- RSAProtectedConfigurationProvider.cs
- QueryContinueDragEvent.cs
- FormCollection.cs
- ReadOnlyDictionary.cs
- SqlEnums.cs
- filewebrequest.cs
- ToolStripTextBox.cs
- ProcessHost.cs
- TemplateXamlParser.cs
- Util.cs
- RijndaelCryptoServiceProvider.cs
- Regex.cs
- ChannelCredentials.cs
- OleStrCAMarshaler.cs
- CrossSiteScriptingValidation.cs
- EdmPropertyAttribute.cs
- CacheDependency.cs
- XmlAnyAttributeAttribute.cs
- PropertyChangedEventArgs.cs
- SqlRowUpdatingEvent.cs
- CodeExpressionRuleDeclaration.cs
- EasingFunctionBase.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ConfigurationStrings.cs
- CapabilitiesState.cs
- RecordsAffectedEventArgs.cs