Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / PlatformNotSupportedException.cs / 1 / 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); } 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); } 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
- SettingsProperty.cs
- ViewLoader.cs
- ReturnValue.cs
- PreservationFileWriter.cs
- ObjectItemCachedAssemblyLoader.cs
- ClipboardData.cs
- TypeConverter.cs
- ZoneLinkButton.cs
- EventSinkHelperWriter.cs
- ZipIOExtraField.cs
- DispatcherEventArgs.cs
- AssociationTypeEmitter.cs
- InsufficientMemoryException.cs
- TemplateParser.cs
- SqlCacheDependencyDatabase.cs
- PlaceHolder.cs
- OrthographicCamera.cs
- SelectionItemPattern.cs
- SourceItem.cs
- UnicastIPAddressInformationCollection.cs
- MdiWindowListStrip.cs
- TraceAsyncResult.cs
- UserControl.cs
- MediaContext.cs
- SafeTimerHandle.cs
- precedingsibling.cs
- PnrpPeerResolverElement.cs
- _DomainName.cs
- LogSwitch.cs
- ByteStream.cs
- EventLogTraceListener.cs
- EnlistmentState.cs
- CodeTypeDeclaration.cs
- Documentation.cs
- ScriptResourceAttribute.cs
- ReadOnlyDictionary.cs
- BitmapCacheBrush.cs
- HebrewCalendar.cs
- RegexCaptureCollection.cs
- HtmlInputRadioButton.cs
- AmbiguousMatchException.cs
- DataObjectAttribute.cs
- SizeChangedInfo.cs
- EditorAttribute.cs
- DataGridViewCellStyleConverter.cs
- ExpressionStringBuilder.cs
- GridViewHeaderRowPresenter.cs
- UICuesEvent.cs
- DeferredReference.cs
- TextureBrush.cs
- CredentialCache.cs
- SystemIPv6InterfaceProperties.cs
- TraceLog.cs
- Helper.cs
- ToolStripRendererSwitcher.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SqlBulkCopyColumnMappingCollection.cs
- XmlNodeComparer.cs
- XmlCompatibilityReader.cs
- ContextMenuStripGroup.cs
- LocalizationParserHooks.cs
- TraversalRequest.cs
- HyperlinkAutomationPeer.cs
- CookieHandler.cs
- InstanceCollisionException.cs
- SamlAssertionKeyIdentifierClause.cs
- WriteLine.cs
- ResourceWriter.cs
- FixedSOMImage.cs
- ToolboxBitmapAttribute.cs
- FlowLayoutPanel.cs
- DropSource.cs
- XmlILConstructAnalyzer.cs
- CalendarButton.cs
- StaticFileHandler.cs
- MatrixCamera.cs
- DocumentApplicationJournalEntry.cs
- TypeKeyValue.cs
- EdgeModeValidation.cs
- TemplateBindingExtension.cs
- linebase.cs
- DataViewManager.cs
- Point3DAnimation.cs
- HttpCookieCollection.cs
- DataStreamFromComStream.cs
- DateTimeSerializationSection.cs
- BaseTemplateParser.cs
- WebResourceAttribute.cs
- RawMouseInputReport.cs
- ServiceHttpHandlerFactory.cs
- StructuredType.cs
- StringFunctions.cs
- ListViewDeletedEventArgs.cs
- TextTreeNode.cs
- CaseInsensitiveOrdinalStringComparer.cs
- NavigationWindow.cs
- ActivationWorker.cs
- IdleTimeoutMonitor.cs
- Helper.cs
- RemoveFromCollection.cs