Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / IO / PathTooLongException.cs / 1305376 / PathTooLongException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: PathTooLongException
**
** [....]
**
**
** Purpose: Exception for paths and/or filenames that are
** too long.
**
**
===========================================================*/
using System;
using System.Runtime.Serialization;
namespace System.IO {
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class PathTooLongException : IOException
{
public PathTooLongException()
: base(Environment.GetResourceString("IO.PathTooLong")) {
SetErrorCode(__HResults.COR_E_PATHTOOLONG);
}
public PathTooLongException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_PATHTOOLONG);
}
public PathTooLongException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_PATHTOOLONG);
}
[System.Security.SecuritySafeCritical] // auto-generated
protected PathTooLongException(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: PathTooLongException
**
** [....]
**
**
** Purpose: Exception for paths and/or filenames that are
** too long.
**
**
===========================================================*/
using System;
using System.Runtime.Serialization;
namespace System.IO {
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public class PathTooLongException : IOException
{
public PathTooLongException()
: base(Environment.GetResourceString("IO.PathTooLong")) {
SetErrorCode(__HResults.COR_E_PATHTOOLONG);
}
public PathTooLongException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_PATHTOOLONG);
}
public PathTooLongException(String message, Exception innerException)
: base(message, innerException) {
SetErrorCode(__HResults.COR_E_PATHTOOLONG);
}
[System.Security.SecuritySafeCritical] // auto-generated
protected PathTooLongException(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
- RegionData.cs
- ConfigXmlElement.cs
- UnsafeNativeMethods.cs
- HtmlInputFile.cs
- GridEntry.cs
- EntityDataSourceViewSchema.cs
- MenuItemAutomationPeer.cs
- SegmentInfo.cs
- wgx_commands.cs
- DataColumnChangeEvent.cs
- SmiContextFactory.cs
- GridViewSelectEventArgs.cs
- ResourceSet.cs
- EdmComplexTypeAttribute.cs
- DelegatingTypeDescriptionProvider.cs
- QilCloneVisitor.cs
- AutomationInteropProvider.cs
- ExpressionReplacer.cs
- SafeRsaProviderHandle.cs
- AppliesToBehaviorDecisionTable.cs
- DataRecordInternal.cs
- AnnotationHelper.cs
- TimeSpan.cs
- DeviceContext.cs
- DataAdapter.cs
- TraceProvider.cs
- EntityClassGenerator.cs
- WorkflowViewElement.cs
- MatrixConverter.cs
- BoundField.cs
- ApplicationActivator.cs
- OleDbException.cs
- IxmlLineInfo.cs
- RequiredFieldValidator.cs
- SelectionHighlightInfo.cs
- DataGridRowHeaderAutomationPeer.cs
- Link.cs
- arclist.cs
- Stack.cs
- PasswordRecovery.cs
- SqlGenerator.cs
- ByteStack.cs
- MasterPageBuildProvider.cs
- BitmapData.cs
- EffectiveValueEntry.cs
- FullTextState.cs
- DocumentGridContextMenu.cs
- BamlVersionHeader.cs
- ExtensionQuery.cs
- _NegoState.cs
- ValidationEventArgs.cs
- ObjectKeyFrameCollection.cs
- PerfService.cs
- RayMeshGeometry3DHitTestResult.cs
- QuadraticBezierSegment.cs
- StoreAnnotationsMap.cs
- EndpointDispatcherTable.cs
- ProcessThreadDesigner.cs
- CodeObject.cs
- FileSystemWatcher.cs
- DispatcherProcessingDisabled.cs
- EntityType.cs
- BatchParser.cs
- ProcessThreadCollection.cs
- HtmlInputSubmit.cs
- PersonalizableAttribute.cs
- x509utils.cs
- BamlResourceDeserializer.cs
- XsdDateTime.cs
- categoryentry.cs
- WebPartConnectionsCancelEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- DataServiceProcessingPipelineEventArgs.cs
- XamlSerializer.cs
- StaticExtension.cs
- HostedBindingBehavior.cs
- UnsafeNativeMethods.cs
- TreeNodeConverter.cs
- OledbConnectionStringbuilder.cs
- _NestedMultipleAsyncResult.cs
- OraclePermission.cs
- UserControlCodeDomTreeGenerator.cs
- DataGridViewHitTestInfo.cs
- XmlSchemaImport.cs
- XmlSchemaSimpleTypeRestriction.cs
- Facet.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- mediapermission.cs
- ReferentialConstraint.cs
- XmlBinaryWriterSession.cs
- EntryIndex.cs
- UIntPtr.cs
- SudsCommon.cs
- XmlEncoding.cs
- OutputCacheModule.cs
- WindowsSecurityTokenAuthenticator.cs
- BrowserCapabilitiesCodeGenerator.cs
- ExternalException.cs
- IIS7UserPrincipal.cs
- FormattedTextSymbols.cs