Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeCatchClause.cs / 1305376 / CodeCatchClause.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 catch exception block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClause {
private CodeStatementCollection statements;
private CodeTypeReference catchExceptionType;
private string localName;
///
///
/// Initializes an instance of .
///
///
public CodeCatchClause() {
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName) {
this.localName = localName;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
Statements.AddRange(statements);
}
///
/// [To be supplied.]
///
public string LocalName {
get {
return (localName == null) ? string.Empty: localName;
}
set {
localName = value;
}
}
///
/// [To be supplied.]
///
public CodeTypeReference CatchExceptionType {
get {
if (catchExceptionType == null) {
catchExceptionType = new CodeTypeReference(typeof(System.Exception));
}
return catchExceptionType;
}
set {
catchExceptionType = value;
}
}
///
///
/// Gets or sets the statements within the clause.
///
///
public CodeStatementCollection Statements {
get {
if (statements == null) {
statements = new CodeStatementCollection();
}
return statements;
}
}
}
}
// 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 catch exception block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeCatchClause {
private CodeStatementCollection statements;
private CodeTypeReference catchExceptionType;
private string localName;
///
///
/// Initializes an instance of .
///
///
public CodeCatchClause() {
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName) {
this.localName = localName;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
}
///
/// [To be supplied.]
///
public CodeCatchClause(string localName, CodeTypeReference catchExceptionType, params CodeStatement[] statements) {
this.localName = localName;
this.catchExceptionType = catchExceptionType;
Statements.AddRange(statements);
}
///
/// [To be supplied.]
///
public string LocalName {
get {
return (localName == null) ? string.Empty: localName;
}
set {
localName = value;
}
}
///
/// [To be supplied.]
///
public CodeTypeReference CatchExceptionType {
get {
if (catchExceptionType == null) {
catchExceptionType = new CodeTypeReference(typeof(System.Exception));
}
return catchExceptionType;
}
set {
catchExceptionType = value;
}
}
///
///
/// Gets or sets the statements within the clause.
///
///
public CodeStatementCollection Statements {
get {
if (statements == null) {
statements = new CodeStatementCollection();
}
return statements;
}
}
}
}
// 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
- TextFormatter.cs
- ToolBarButton.cs
- DataGrid.cs
- SortableBindingList.cs
- UpdatableGenericsFeature.cs
- InputLangChangeRequestEvent.cs
- PageHandlerFactory.cs
- HttpException.cs
- TargetException.cs
- TableRowGroup.cs
- Win32.cs
- GeometryGroup.cs
- XdrBuilder.cs
- RotateTransform.cs
- RadioButtonBaseAdapter.cs
- NativeMethodsOther.cs
- Events.cs
- WebBrowserSiteBase.cs
- RelAssertionDirectKeyIdentifierClause.cs
- WebPartConnectionsCancelVerb.cs
- AnimatedTypeHelpers.cs
- EventLogEntryCollection.cs
- ThicknessKeyFrameCollection.cs
- DrawingGroupDrawingContext.cs
- Debug.cs
- RunWorkerCompletedEventArgs.cs
- Solver.cs
- XmlNamespaceDeclarationsAttribute.cs
- PolyQuadraticBezierSegment.cs
- XmlReaderSettings.cs
- SmtpFailedRecipientsException.cs
- FrameworkContentElementAutomationPeer.cs
- PowerModeChangedEventArgs.cs
- DispatcherSynchronizationContext.cs
- ScriptControl.cs
- StateRuntime.cs
- DtdParser.cs
- GenericUriParser.cs
- CodeIdentifier.cs
- EasingFunctionBase.cs
- SizeValueSerializer.cs
- Cursors.cs
- ValidatorCompatibilityHelper.cs
- OrderablePartitioner.cs
- GacUtil.cs
- XmlTypeMapping.cs
- DependencyObject.cs
- TextElementCollection.cs
- GenerateHelper.cs
- DataGridDetailsPresenterAutomationPeer.cs
- PathStreamGeometryContext.cs
- NonBatchDirectoryCompiler.cs
- EventQueueState.cs
- ResourceReferenceExpression.cs
- ResourceSetExpression.cs
- ToolStripItemDataObject.cs
- DataObjectSettingDataEventArgs.cs
- IPGlobalProperties.cs
- Dump.cs
- OdbcHandle.cs
- ProgressBarHighlightConverter.cs
- ExclusiveNamedPipeTransportManager.cs
- TextModifierScope.cs
- TableDetailsCollection.cs
- TextEffect.cs
- UniqueContractNameValidationBehavior.cs
- DebugHandleTracker.cs
- LongSumAggregationOperator.cs
- InvalidateEvent.cs
- XmlSchemaAttributeGroupRef.cs
- ConfigurationElementCollection.cs
- XsdValidatingReader.cs
- _ScatterGatherBuffers.cs
- XmlValueConverter.cs
- EntityModelBuildProvider.cs
- ASCIIEncoding.cs
- AdditionalEntityFunctions.cs
- ListView.cs
- Substitution.cs
- ComPlusContractBehavior.cs
- Mouse.cs
- BufferAllocator.cs
- UserControlFileEditor.cs
- ComponentEditorPage.cs
- RC2CryptoServiceProvider.cs
- XmlSchemaComplexType.cs
- DocumentSchemaValidator.cs
- ListViewEditEventArgs.cs
- FixedSOMLineCollection.cs
- _BufferOffsetSize.cs
- AsymmetricKeyExchangeFormatter.cs
- reliableinputsessionchannel.cs
- SplitterPanel.cs
- ConnectionPointCookie.cs
- HttpHeaderCollection.cs
- StateWorkerRequest.cs
- WindowsSpinner.cs
- WindowsProgressbar.cs
- DefaultValueAttribute.cs
- TimeoutValidationAttribute.cs