Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- CallbackWrapper.cs
- DesignerAdapterUtil.cs
- CharacterMetrics.cs
- StringDictionaryWithComparer.cs
- File.cs
- TypeLibConverter.cs
- CodeRemoveEventStatement.cs
- WrappedIUnknown.cs
- SharedConnectionInfo.cs
- SchemaElement.cs
- SemaphoreFullException.cs
- ButtonField.cs
- AssignDesigner.xaml.cs
- XmlDictionaryReaderQuotas.cs
- AnimationClock.cs
- XamlReader.cs
- DigitShape.cs
- StateMachineTimers.cs
- CompositeActivityTypeDescriptorProvider.cs
- ScopedMessagePartSpecification.cs
- IsolatedStorageFile.cs
- SoapHeaders.cs
- TextServicesCompartmentContext.cs
- Roles.cs
- AudienceUriMode.cs
- XmlCharCheckingWriter.cs
- InstancePersistenceCommandException.cs
- URLString.cs
- List.cs
- TableCell.cs
- XmlSecureResolver.cs
- TimerElapsedEvenArgs.cs
- TextSpan.cs
- XmlSchemaSequence.cs
- ListBindingHelper.cs
- TrustLevelCollection.cs
- XomlCompiler.cs
- PositiveTimeSpanValidatorAttribute.cs
- Int32Rect.cs
- Documentation.cs
- ArgumentReference.cs
- SystemNetworkInterface.cs
- TreeViewItem.cs
- MessageQueueException.cs
- ButtonChrome.cs
- DesignerUtils.cs
- SignatureDescription.cs
- HandleCollector.cs
- ProcessModuleCollection.cs
- SqlGatherProducedAliases.cs
- WeakHashtable.cs
- Lazy.cs
- SerializationInfoEnumerator.cs
- recordstatescratchpad.cs
- FormViewDeletedEventArgs.cs
- BitmapFrameEncode.cs
- SendActivity.cs
- DeviceContexts.cs
- HTTPAPI_VERSION.cs
- BufferedGraphicsContext.cs
- SizeKeyFrameCollection.cs
- ConnectionConsumerAttribute.cs
- XmlAtomicValue.cs
- CheckBoxFlatAdapter.cs
- ManualResetEvent.cs
- GlyphsSerializer.cs
- AddToCollection.cs
- Pair.cs
- SystemMulticastIPAddressInformation.cs
- activationcontext.cs
- ProtocolsSection.cs
- PrinterResolution.cs
- TypedReference.cs
- ScriptIgnoreAttribute.cs
- FormViewDeleteEventArgs.cs
- MessageBox.cs
- GrammarBuilderPhrase.cs
- XmlAnyElementAttributes.cs
- MessageSmuggler.cs
- ListViewInsertionMark.cs
- Track.cs
- HttpCapabilitiesBase.cs
- ToolStripPanel.cs
- Timer.cs
- FormatStringEditor.cs
- CipherData.cs
- BeginStoryboard.cs
- SupportingTokenSecurityTokenResolver.cs
- SHA1Cng.cs
- ZipIOExtraFieldZip64Element.cs
- MatcherBuilder.cs
- ListArgumentProvider.cs
- ToolBarTray.cs
- NonNullItemCollection.cs
- MasterPageBuildProvider.cs
- WebPartRestoreVerb.cs
- WsdlBuildProvider.cs
- DataGridRowsPresenter.cs
- ToolStripLabel.cs
- QueryRewriter.cs