Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BuildDependencySet.cs
- LinearGradientBrush.cs
- XmlCompatibilityReader.cs
- SerializationAttributes.cs
- ParameterSubsegment.cs
- HorizontalAlignConverter.cs
- CallTemplateAction.cs
- DeviceContexts.cs
- LockRecursionException.cs
- WebColorConverter.cs
- Pkcs7Signer.cs
- CryptoStream.cs
- FindRequestContext.cs
- HMACSHA384.cs
- GuidTagList.cs
- RequestNavigateEventArgs.cs
- ControlTemplate.cs
- DateTimePicker.cs
- ProfileGroupSettingsCollection.cs
- TextRangeSerialization.cs
- ReadWriteSpinLock.cs
- DSASignatureFormatter.cs
- ChangeBlockUndoRecord.cs
- BindingCompleteEventArgs.cs
- GroupByQueryOperator.cs
- ConfigurationElement.cs
- QuaternionAnimationBase.cs
- CommonRemoteMemoryBlock.cs
- OdbcInfoMessageEvent.cs
- Button.cs
- IApplicationTrustManager.cs
- ColumnBinding.cs
- elementinformation.cs
- GenericEnumerator.cs
- PictureBox.cs
- NativeMethods.cs
- ApplicationDirectoryMembershipCondition.cs
- ExpressionBindingCollection.cs
- TreeViewItem.cs
- PermissionSetEnumerator.cs
- ValidationPropertyAttribute.cs
- DiagnosticsConfiguration.cs
- ZipIOExtraField.cs
- SQLConvert.cs
- XmlQuerySequence.cs
- SmiGettersStream.cs
- InstanceLockedException.cs
- DragSelectionMessageFilter.cs
- SettingsContext.cs
- DictionaryEntry.cs
- HttpEncoder.cs
- SystemColors.cs
- _StreamFramer.cs
- PropertyStore.cs
- SymLanguageVendor.cs
- AlphaSortedEnumConverter.cs
- FullTextBreakpoint.cs
- WebPartDeleteVerb.cs
- SQLBytes.cs
- IsolationInterop.cs
- ConfigXmlWhitespace.cs
- ServicesExceptionNotHandledEventArgs.cs
- NamedPipeConnectionPool.cs
- relpropertyhelper.cs
- PackagingUtilities.cs
- TextChange.cs
- HttpClientCertificate.cs
- HttpListenerPrefixCollection.cs
- PackageProperties.cs
- WindowsGraphicsCacheManager.cs
- Evaluator.cs
- PointConverter.cs
- BitmapEditor.cs
- ObjectStorage.cs
- Typeface.cs
- Tile.cs
- DataMemberFieldConverter.cs
- NameSpaceEvent.cs
- ClientTargetSection.cs
- ScrollBar.cs
- ObservableDictionary.cs
- XPathAncestorQuery.cs
- EntityContainerAssociationSet.cs
- RegistrationServices.cs
- SqlInternalConnectionSmi.cs
- XmlSerializationReader.cs
- AssemblyAttributesGoHere.cs
- WasEndpointConfigContainer.cs
- LongMinMaxAggregationOperator.cs
- ProgressBarRenderer.cs
- CustomAttribute.cs
- UpdatePanelTriggerCollection.cs
- Context.cs
- ConstraintStruct.cs
- OdbcDataAdapter.cs
- DSACryptoServiceProvider.cs
- ResourceReader.cs
- UniqueIdentifierService.cs
- GlobalEventManager.cs
- TextInfo.cs