Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / CodeDOM / CodeThrowExceptionStatement.cs / 1 / CodeThrowExceptionStatement.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents
/// a statement that throws an exception.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeThrowExceptionStatement : CodeStatement {
private CodeExpression toThrow;
///
///
/// Initializes a new instance of .
///
///
public CodeThrowExceptionStatement() {
}
///
///
/// Initializes a new instance of using the specified statement.
///
///
public CodeThrowExceptionStatement(CodeExpression toThrow) {
ToThrow = toThrow;
}
///
///
/// Gets or sets
/// the expression to throw.
///
///
public CodeExpression ToThrow {
get {
return toThrow;
}
set {
toThrow = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.CodeDom {
using System.Diagnostics;
using System;
using Microsoft.Win32;
using System.Collections;
using System.Runtime.InteropServices;
///
///
/// Represents
/// a statement that throws an exception.
///
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeThrowExceptionStatement : CodeStatement {
private CodeExpression toThrow;
///
///
/// Initializes a new instance of .
///
///
public CodeThrowExceptionStatement() {
}
///
///
/// Initializes a new instance of using the specified statement.
///
///
public CodeThrowExceptionStatement(CodeExpression toThrow) {
ToThrow = toThrow;
}
///
///
/// Gets or sets
/// the expression to throw.
///
///
public CodeExpression ToThrow {
get {
return toThrow;
}
set {
toThrow = value;
}
}
}
}
// 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
- Point.cs
- diagnosticsswitches.cs
- FilteredXmlReader.cs
- streamingZipPartStream.cs
- SessionStateUtil.cs
- TextEditorContextMenu.cs
- ReadOnlyHierarchicalDataSource.cs
- SqlCommandSet.cs
- SqlProcedureAttribute.cs
- EditingCommands.cs
- TextBoxAutoCompleteSourceConverter.cs
- SmiEventStream.cs
- PartitionResolver.cs
- MetadataPropertyAttribute.cs
- ImageAnimator.cs
- GeneralTransform2DTo3D.cs
- storepermission.cs
- OutputBuffer.cs
- TraceLog.cs
- UriScheme.cs
- ResXFileRef.cs
- OdbcStatementHandle.cs
- TouchesOverProperty.cs
- SingleConverter.cs
- Style.cs
- GlobalProxySelection.cs
- ScrollProperties.cs
- Int32Converter.cs
- AddInEnvironment.cs
- EntityException.cs
- GroupBox.cs
- AssociationSet.cs
- StateItem.cs
- StreamAsIStream.cs
- TreeViewDesigner.cs
- FieldAccessException.cs
- ScaleTransform3D.cs
- TraceInternal.cs
- ToolStripSettings.cs
- SystemWebExtensionsSectionGroup.cs
- PasswordRecovery.cs
- XmlSchemaNotation.cs
- PathFigureCollection.cs
- Model3DGroup.cs
- DispatcherEventArgs.cs
- SystemIPGlobalStatistics.cs
- EventTrigger.cs
- XPathSelectionIterator.cs
- OleCmdHelper.cs
- FreezableDefaultValueFactory.cs
- AffineTransform3D.cs
- InkCanvasSelectionAdorner.cs
- Matrix3DStack.cs
- DataGridViewColumnStateChangedEventArgs.cs
- PeerPresenceInfo.cs
- RelationshipWrapper.cs
- DeviceContexts.cs
- HttpApplicationFactory.cs
- NetworkStream.cs
- SecurityHeaderTokenResolver.cs
- OpCodes.cs
- __TransparentProxy.cs
- ScriptResourceInfo.cs
- DataColumnCollection.cs
- FastPropertyAccessor.cs
- CodePageUtils.cs
- CredentialCache.cs
- EmbossBitmapEffect.cs
- PublishLicense.cs
- SourceLocation.cs
- DoubleLinkListEnumerator.cs
- Simplifier.cs
- FunctionQuery.cs
- EditingCoordinator.cs
- Typography.cs
- CompareInfo.cs
- TimeEnumHelper.cs
- JapaneseLunisolarCalendar.cs
- EntityTypeBase.cs
- RootBrowserWindow.cs
- EntityReference.cs
- MenuEventArgs.cs
- OperationAbortedException.cs
- DrawingBrush.cs
- FontCollection.cs
- ObjectRef.cs
- COM2TypeInfoProcessor.cs
- SoapEnumAttribute.cs
- QilVisitor.cs
- TableAdapterManagerMethodGenerator.cs
- ToolStripDropDownClosedEventArgs.cs
- SqlRewriteScalarSubqueries.cs
- AssemblyResourceLoader.cs
- DataService.cs
- CodeTypeDeclaration.cs
- RegionInfo.cs
- PersonalizationStateInfo.cs
- MouseGesture.cs
- TemplatedWizardStep.cs
- wgx_commands.cs