Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / PlatformNotSupportedException.cs / 1305376 / PlatformNotSupportedException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: PlatformNotSupportedException ** ** ** Purpose: To handle features that don't run on particular platforms ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class PlatformNotSupportedException : NotSupportedException { public PlatformNotSupportedException() : base(Environment.GetResourceString("Arg_PlatformNotSupported")) { SetErrorCode(__HResults.COR_E_PLATFORMNOTSUPPORTED); } public PlatformNotSupportedException(String message) : base(message) { SetErrorCode(__HResults.COR_E_PLATFORMNOTSUPPORTED); } public PlatformNotSupportedException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_PLATFORMNOTSUPPORTED); } [System.Security.SecuritySafeCritical] // auto-generated protected PlatformNotSupportedException(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: PlatformNotSupportedException ** ** ** Purpose: To handle features that don't run on particular platforms ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class PlatformNotSupportedException : NotSupportedException { public PlatformNotSupportedException() : base(Environment.GetResourceString("Arg_PlatformNotSupported")) { SetErrorCode(__HResults.COR_E_PLATFORMNOTSUPPORTED); } public PlatformNotSupportedException(String message) : base(message) { SetErrorCode(__HResults.COR_E_PLATFORMNOTSUPPORTED); } public PlatformNotSupportedException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_PLATFORMNOTSUPPORTED); } [System.Security.SecuritySafeCritical] // auto-generated protected PlatformNotSupportedException(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
- WindowPatternIdentifiers.cs
- TablePatternIdentifiers.cs
- ContentFilePart.cs
- PageWrapper.cs
- PropertyDescriptor.cs
- NetworkCredential.cs
- SSmlParser.cs
- StyleCollection.cs
- SafeMILHandle.cs
- GlobalAllocSafeHandle.cs
- MailBnfHelper.cs
- QueryAccessibilityHelpEvent.cs
- MenuTracker.cs
- TextDecorationCollectionConverter.cs
- Int16AnimationBase.cs
- SemanticResolver.cs
- PropertyTabAttribute.cs
- XPathQueryGenerator.cs
- TemplateComponentConnector.cs
- QilXmlWriter.cs
- Point.cs
- NetWebProxyFinder.cs
- ReferencedCollectionType.cs
- HttpClientChannel.cs
- QueuedDeliveryRequirementsMode.cs
- DiagnosticsConfigurationHandler.cs
- SerializerWriterEventHandlers.cs
- ReadOnlyPropertyMetadata.cs
- ToolStripTextBox.cs
- COM2Enum.cs
- ScalarOps.cs
- TypeLoadException.cs
- GregorianCalendarHelper.cs
- LineInfo.cs
- TagMapCollection.cs
- TreeView.cs
- IdentityVerifier.cs
- Journal.cs
- CalendarItem.cs
- ResourceReferenceKeyNotFoundException.cs
- Image.cs
- GifBitmapEncoder.cs
- XPathAncestorIterator.cs
- dbenumerator.cs
- ServiceRoute.cs
- SecurityPermission.cs
- SynchronizingStream.cs
- OleDbEnumerator.cs
- PerformanceCounter.cs
- WebPartCloseVerb.cs
- SourceLineInfo.cs
- ICspAsymmetricAlgorithm.cs
- handlecollector.cs
- EqualityComparer.cs
- PerspectiveCamera.cs
- ImageFormat.cs
- Win32.cs
- FormatException.cs
- WindowsAuthenticationModule.cs
- GridViewUpdateEventArgs.cs
- ComboBoxItem.cs
- GlobalProxySelection.cs
- AssemblyFilter.cs
- DataGridColumnStyleMappingNameEditor.cs
- XamlReader.cs
- OlePropertyStructs.cs
- Lease.cs
- Attributes.cs
- CompiledXpathExpr.cs
- DrawingDrawingContext.cs
- XmlValidatingReaderImpl.cs
- HttpHandlerActionCollection.cs
- XmlImplementation.cs
- hresults.cs
- UntypedNullExpression.cs
- AlternateView.cs
- Enlistment.cs
- DataBinding.cs
- MessageDescriptionCollection.cs
- Accessible.cs
- UnitControl.cs
- ClipboardData.cs
- BindUriHelper.cs
- RawUIStateInputReport.cs
- BitArray.cs
- GuidelineCollection.cs
- ReliableChannelBinder.cs
- SyndicationFeedFormatter.cs
- FolderLevelBuildProviderCollection.cs
- FontWeight.cs
- XmlNamespaceManager.cs
- TableChangeProcessor.cs
- SHA1CryptoServiceProvider.cs
- MorphHelpers.cs
- FileReservationCollection.cs
- ReadOnlyDataSourceView.cs
- MaterialGroup.cs
- DuplexChannelBinder.cs
- SqlVersion.cs
- MemoryRecordBuffer.cs