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
- RowBinding.cs
- VectorAnimation.cs
- UseManagedPresentationElement.cs
- InvalidEnumArgumentException.cs
- CharAnimationBase.cs
- DBCommand.cs
- BamlRecordReader.cs
- validationstate.cs
- StreamResourceInfo.cs
- VectorConverter.cs
- AssemblyFilter.cs
- HtmlInputControl.cs
- BuildProviderCollection.cs
- ImmutableObjectAttribute.cs
- RelatedImageListAttribute.cs
- PropertyEntry.cs
- XmlEnumAttribute.cs
- ResourceAssociationSetEnd.cs
- GridViewRowCollection.cs
- WinFormsSpinner.cs
- TableItemPatternIdentifiers.cs
- RefExpr.cs
- KeyValuePair.cs
- AVElementHelper.cs
- sapiproxy.cs
- WebCategoryAttribute.cs
- Version.cs
- TypedElement.cs
- EventLogPropertySelector.cs
- PersonalizableAttribute.cs
- ConfigurationManagerHelperFactory.cs
- DataColumnMappingCollection.cs
- ResXBuildProvider.cs
- BitmapEffectInputData.cs
- ListManagerBindingsCollection.cs
- X509ThumbprintKeyIdentifierClause.cs
- ExceptionDetail.cs
- Wizard.cs
- DataGridViewRowStateChangedEventArgs.cs
- OdbcTransaction.cs
- ZipIOCentralDirectoryFileHeader.cs
- Transactions.cs
- Or.cs
- UInt16.cs
- HandleExceptionArgs.cs
- UnsafeNativeMethodsCLR.cs
- ViewCellSlot.cs
- OrderedDictionary.cs
- MultipartContentParser.cs
- FilteredReadOnlyMetadataCollection.cs
- NetworkAddressChange.cs
- TextAnchor.cs
- EntityDataSourceSelectingEventArgs.cs
- StateFinalizationDesigner.cs
- XmlHierarchicalDataSourceView.cs
- EdmToObjectNamespaceMap.cs
- TextInfo.cs
- embossbitmapeffect.cs
- ExpressionHelper.cs
- NextPreviousPagerField.cs
- ResourceIDHelper.cs
- FunctionMappingTranslator.cs
- InputLanguageSource.cs
- XmlDataSource.cs
- EntityDataSourceSelectedEventArgs.cs
- DrawingAttributes.cs
- ProxyWebPartManagerDesigner.cs
- WorkflowServiceAttributes.cs
- ProvideValueServiceProvider.cs
- ByteStreamMessage.cs
- _StreamFramer.cs
- SqlBuilder.cs
- wgx_exports.cs
- InheritedPropertyDescriptor.cs
- FixedNode.cs
- HtmlTextArea.cs
- ConnectionManagementSection.cs
- KeyboardDevice.cs
- HttpContextWrapper.cs
- Transform.cs
- XPathPatternParser.cs
- keycontainerpermission.cs
- EnumUnknown.cs
- CompilerTypeWithParams.cs
- ProfileEventArgs.cs
- AttachedPropertyMethodSelector.cs
- IsolatedStorageFilePermission.cs
- JoinSymbol.cs
- TextTreeExtractElementUndoUnit.cs
- OleDbInfoMessageEvent.cs
- IResourceProvider.cs
- SpellerStatusTable.cs
- BufferedResponseStream.cs
- ExpandoClass.cs
- DataTableClearEvent.cs
- DataControlButton.cs
- ParameterCollection.cs
- DataControlImageButton.cs
- FlowLayout.cs
- WindowsListViewGroupHelper.cs