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
- PrincipalPermission.cs
- TextCharacters.cs
- DataColumnSelectionConverter.cs
- DbgUtil.cs
- TableCellCollection.cs
- IArgumentProvider.cs
- OrderedDictionary.cs
- Helpers.cs
- ServiceReference.cs
- FixedSOMLineRanges.cs
- ToolStripItemTextRenderEventArgs.cs
- TextModifier.cs
- DiscoveryCallbackBehavior.cs
- CompatibleComparer.cs
- Rectangle.cs
- TraceEventCache.cs
- SystemKeyConverter.cs
- BufferedGraphics.cs
- HwndHostAutomationPeer.cs
- WebPartVerbCollection.cs
- SecurityDocument.cs
- CombinedGeometry.cs
- WindowsScroll.cs
- ForEachAction.cs
- BitmapEffectInputData.cs
- HwndProxyElementProvider.cs
- ControlIdConverter.cs
- NumberFunctions.cs
- HTMLTagNameToTypeMapper.cs
- EditorPartDesigner.cs
- DynamicDocumentPaginator.cs
- JavaScriptObjectDeserializer.cs
- fixedPageContentExtractor.cs
- ParameterExpression.cs
- ModulesEntry.cs
- MultiSelector.cs
- TransactionFlowBindingElement.cs
- GlobalizationSection.cs
- FlatButtonAppearance.cs
- BitmapEffectOutputConnector.cs
- ParserOptions.cs
- PositiveTimeSpanValidator.cs
- TypeBuilder.cs
- WebRequestModuleElementCollection.cs
- XmlNodeReader.cs
- IndexedString.cs
- httpserverutility.cs
- SchemaNotation.cs
- OutputCacheSettingsSection.cs
- GPPOINT.cs
- MediaPlayerState.cs
- ActionFrame.cs
- Transform3DGroup.cs
- TdsParserStaticMethods.cs
- BaseTemplateBuildProvider.cs
- InputScopeConverter.cs
- ContextMenuService.cs
- ProfileServiceManager.cs
- ContextMarshalException.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- Types.cs
- EntityContainerEntitySet.cs
- DataColumnSelectionConverter.cs
- DropShadowEffect.cs
- SymbolType.cs
- WorkflowInstanceTerminatedRecord.cs
- FileUpload.cs
- RuntimeConfigurationRecord.cs
- OdbcStatementHandle.cs
- ActivationServices.cs
- IsolatedStorageException.cs
- ResourceCategoryAttribute.cs
- TextBoxRenderer.cs
- ReadOnlyDictionary.cs
- PaperSource.cs
- UrlAuthorizationModule.cs
- SQLSingleStorage.cs
- AtlasWeb.Designer.cs
- GlyphRunDrawing.cs
- IntranetCredentialPolicy.cs
- DataComponentGenerator.cs
- DLinqAssociationProvider.cs
- ProxyAttribute.cs
- WorkflowRuntimeSection.cs
- SuppressIldasmAttribute.cs
- ComplexLine.cs
- XmlSchemaDatatype.cs
- XmlSchemaElement.cs
- Matrix.cs
- FontInfo.cs
- Highlights.cs
- TextBox.cs
- MethodAccessException.cs
- DefaultExpression.cs
- IsolatedStorageException.cs
- Transform3DGroup.cs
- ModelVisual3D.cs
- BufferBuilder.cs
- FrameDimension.cs
- CryptoKeySecurity.cs