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
- SiteMembershipCondition.cs
- GregorianCalendar.cs
- SQLString.cs
- SharedStatics.cs
- Menu.cs
- DescendentsWalker.cs
- Image.cs
- _SpnDictionary.cs
- KeyManager.cs
- XmlCustomFormatter.cs
- PowerEase.cs
- WindowsFormsHostAutomationPeer.cs
- OneToOneMappingSerializer.cs
- WebPartEditVerb.cs
- WebPartDisplayModeEventArgs.cs
- MDIWindowDialog.cs
- ServiceOperationHelpers.cs
- StringPropertyBuilder.cs
- CommandHelpers.cs
- WebPartVerbCollection.cs
- TextServicesProperty.cs
- TypeConverters.cs
- OutputScope.cs
- ReadonlyMessageFilter.cs
- FileDataSourceCache.cs
- LicenseManager.cs
- Rules.cs
- StrongNamePublicKeyBlob.cs
- TemplatedMailWebEventProvider.cs
- JavascriptCallbackMessageInspector.cs
- AliasedSlot.cs
- BufferedGraphicsManager.cs
- MimeBasePart.cs
- EventToken.cs
- TextEditorMouse.cs
- CategoryNameCollection.cs
- TypeElementCollection.cs
- RelationshipConverter.cs
- CodeCompileUnit.cs
- Config.cs
- TextBoxDesigner.cs
- Currency.cs
- BaseValidatorDesigner.cs
- TextEditorCharacters.cs
- XmlDataImplementation.cs
- ProfileSection.cs
- ResourceWriter.cs
- CodeTypeDeclaration.cs
- RoutedEventValueSerializer.cs
- InkCanvas.cs
- MouseCaptureWithinProperty.cs
- SoapAttributeOverrides.cs
- SqlInternalConnectionSmi.cs
- WinEventQueueItem.cs
- ObjectDataSourceDisposingEventArgs.cs
- RegisteredArrayDeclaration.cs
- CapabilitiesAssignment.cs
- Rect3DValueSerializer.cs
- ChineseLunisolarCalendar.cs
- ErrorFormatter.cs
- StylusCaptureWithinProperty.cs
- ModuleBuilderData.cs
- WebBrowser.cs
- SerialReceived.cs
- diagnosticsswitches.cs
- IProvider.cs
- ObjectContextServiceProvider.cs
- CodeVariableReferenceExpression.cs
- AutomationPropertyInfo.cs
- XamlGridLengthSerializer.cs
- DbProviderFactories.cs
- NameValueFileSectionHandler.cs
- InputManager.cs
- RegexCompiler.cs
- UIElementHelper.cs
- ClrPerspective.cs
- ObjectCloneHelper.cs
- ListControlConvertEventArgs.cs
- CqlErrorHelper.cs
- ListViewPagedDataSource.cs
- QilVisitor.cs
- MethodCallTranslator.cs
- SymmetricSecurityBindingElement.cs
- BuildResult.cs
- ObjectListItem.cs
- XmlName.cs
- XPathSelfQuery.cs
- TagPrefixAttribute.cs
- SHA384.cs
- MergePropertyDescriptor.cs
- MergeFailedEvent.cs
- TypeConverterHelper.cs
- RectAnimation.cs
- OneToOneMappingSerializer.cs
- DataSourceCache.cs
- IncrementalHitTester.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- ConfigsHelper.cs
- SiteMapDataSourceView.cs
- ParserHooks.cs