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
- XomlDesignerLoader.cs
- SourceLineInfo.cs
- _TimerThread.cs
- CompensatableTransactionScopeActivityDesigner.cs
- AccessKeyManager.cs
- LongValidator.cs
- CompositeScriptReferenceEventArgs.cs
- OpCopier.cs
- Debug.cs
- IsolationInterop.cs
- PerformanceCountersElement.cs
- RepeatButtonAutomationPeer.cs
- basecomparevalidator.cs
- DockPattern.cs
- NonVisualControlAttribute.cs
- TransferRequestHandler.cs
- XsdBuildProvider.cs
- MatrixValueSerializer.cs
- XmlSchemaComplexType.cs
- SharedDp.cs
- SchemaElementDecl.cs
- ZipIOExtraField.cs
- HealthMonitoringSectionHelper.cs
- SqlRowUpdatedEvent.cs
- GuidTagList.cs
- NetworkInterface.cs
- TextParagraphCache.cs
- SqlDataSourceDesigner.cs
- XLinq.cs
- DataSourceProvider.cs
- MemberMemberBinding.cs
- CodeTypeReferenceSerializer.cs
- TextWriter.cs
- WorkflowDispatchContext.cs
- AxHost.cs
- NullReferenceException.cs
- FormatConvertedBitmap.cs
- VisualTarget.cs
- Parser.cs
- CompilerGlobalScopeAttribute.cs
- ArrayTypeMismatchException.cs
- OrderablePartitioner.cs
- Attributes.cs
- LinkedList.cs
- GetPageCompletedEventArgs.cs
- ChildChangedEventArgs.cs
- MediaTimeline.cs
- DebugView.cs
- PersonalizationDictionary.cs
- RepeatBehaviorConverter.cs
- ProcessThreadCollection.cs
- _FixedSizeReader.cs
- ErrorStyle.cs
- ExtensionQuery.cs
- ReaderOutput.cs
- Unit.cs
- ServerValidateEventArgs.cs
- NavigateEvent.cs
- UInt16.cs
- Int32CollectionConverter.cs
- CompilerError.cs
- ListBindingConverter.cs
- MenuEventArgs.cs
- SslStream.cs
- RowVisual.cs
- SafeArrayRankMismatchException.cs
- XmlElementAttribute.cs
- ToolStripActionList.cs
- ITextView.cs
- ReceiveParametersContent.cs
- TextRenderer.cs
- CompilerInfo.cs
- SmiSettersStream.cs
- MediaElement.cs
- CryptoConfig.cs
- CustomLineCap.cs
- QilReference.cs
- MappedMetaModel.cs
- ResourceAttributes.cs
- AsyncStreamReader.cs
- SafeFileMappingHandle.cs
- XhtmlBasicPhoneCallAdapter.cs
- CreateInstanceBinder.cs
- HyperLinkDataBindingHandler.cs
- Interlocked.cs
- BulletedList.cs
- FileNotFoundException.cs
- UMPAttributes.cs
- UnsafeNativeMethodsTablet.cs
- DotExpr.cs
- SiteMapNodeCollection.cs
- WinOEToolBoxItem.cs
- SendingRequestEventArgs.cs
- Bitmap.cs
- StringAnimationBase.cs
- AuthenticationModulesSection.cs
- WebBaseEventKeyComparer.cs
- HtmlHead.cs
- BaseDataBoundControl.cs
- PropertyOverridesDialog.cs