Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- HwndAppCommandInputProvider.cs
- DesignerActionMethodItem.cs
- Point.cs
- DesignerDataView.cs
- EditorZone.cs
- RegistrationServices.cs
- BCryptNative.cs
- SelectionProcessor.cs
- WebUtility.cs
- TypeRefElement.cs
- CharConverter.cs
- TypeNameConverter.cs
- WebResourceAttribute.cs
- LoginCancelEventArgs.cs
- CommonGetThemePartSize.cs
- Converter.cs
- _IPv6Address.cs
- PipelineComponent.cs
- QueryInterceptorAttribute.cs
- IteratorDescriptor.cs
- SubqueryRules.cs
- HostingEnvironmentSection.cs
- MediaElement.cs
- util.cs
- CopyAction.cs
- GlyphRunDrawing.cs
- TreeNodeCollection.cs
- AxWrapperGen.cs
- StrokeRenderer.cs
- TextParentUndoUnit.cs
- KeyedCollection.cs
- ConfigurationElementProperty.cs
- StandardCommands.cs
- ListViewInsertEventArgs.cs
- CustomLineCap.cs
- WebResourceAttribute.cs
- RelationshipDetailsCollection.cs
- Helpers.cs
- GenericEnumConverter.cs
- CodeTypeParameter.cs
- IdentityHolder.cs
- NestPullup.cs
- MemberInfoSerializationHolder.cs
- ListViewHitTestInfo.cs
- LocatorManager.cs
- Ray3DHitTestResult.cs
- XpsImageSerializationService.cs
- MonthChangedEventArgs.cs
- PresentationTraceSources.cs
- XamlTypeMapper.cs
- DashStyle.cs
- MsmqInputChannelListenerBase.cs
- PersonalizableTypeEntry.cs
- SelectingProviderEventArgs.cs
- FixedSOMPageElement.cs
- XPathArrayIterator.cs
- ProtocolViolationException.cs
- LineVisual.cs
- WindowsNonControl.cs
- ToolStripSettings.cs
- WindowsImpersonationContext.cs
- Model3DCollection.cs
- dataSvcMapFileLoader.cs
- ItemsPanelTemplate.cs
- ResourceContainer.cs
- BuildProvider.cs
- DbConnectionPool.cs
- SmiRequestExecutor.cs
- LogWriteRestartAreaAsyncResult.cs
- Point4D.cs
- DbConnectionPoolIdentity.cs
- SecureEnvironment.cs
- XPathArrayIterator.cs
- ProfileGroupSettingsCollection.cs
- NativeMethodsCLR.cs
- InfoCardSymmetricCrypto.cs
- GenericXmlSecurityToken.cs
- DelegateSerializationHolder.cs
- BindingCollection.cs
- Cursors.cs
- ViewStateChangedEventArgs.cs
- CLRBindingWorker.cs
- SByteConverter.cs
- MemberInfoSerializationHolder.cs
- HtmlMobileTextWriter.cs
- Italic.cs
- IfJoinedCondition.cs
- Formatter.cs
- FramingChannels.cs
- Visual3DCollection.cs
- InternalRelationshipCollection.cs
- ContainerControl.cs
- CheckPair.cs
- loginstatus.cs
- XmlNodeReader.cs
- ObjectFullSpanRewriter.cs
- FormsIdentity.cs
- DoubleAnimation.cs
- ScrollEventArgs.cs
- ModelUtilities.cs