Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / CodeDOM / CodeTryCatchFinallyStatement.cs / 1305376 / CodeTryCatchFinallyStatement.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 try block, with any number of catch clauses and an
/// optionally finally block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTryCatchFinallyStatement : CodeStatement {
private CodeStatementCollection tryStatments = new CodeStatementCollection();
private CodeStatementCollection finallyStatments = new CodeStatementCollection();
private CodeCatchClauseCollection catchClauses = new CodeCatchClauseCollection();
///
///
/// Initializes a new instance of .
///
///
public CodeTryCatchFinallyStatement() {
}
///
///
/// Initializes a new instance of using the specified statements to try and catch
/// clauses.
///
///
public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses) {
TryStatements.AddRange(tryStatements);
CatchClauses.AddRange(catchClauses);
}
///
///
/// Initializes a new instance of using the specified statements to
/// try, catch clauses, and finally statements.
///
///
public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses, CodeStatement[] finallyStatements) {
TryStatements.AddRange(tryStatements);
CatchClauses.AddRange(catchClauses);
FinallyStatements.AddRange(finallyStatements);
}
///
///
/// Gets or sets
/// the try statements to try.
///
///
public CodeStatementCollection TryStatements {
get {
return tryStatments;
}
}
///
///
/// Gets or sets the catch clauses to use.
///
///
public CodeCatchClauseCollection CatchClauses {
get {
return catchClauses;
}
}
///
///
/// Gets or sets
/// the finally statements to use.
///
///
public CodeStatementCollection FinallyStatements {
get {
return finallyStatments;
}
}
}
}
// 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 try block, with any number of catch clauses and an
/// optionally finally block.
///
[
ClassInterface(ClassInterfaceType.AutoDispatch),
ComVisible(true),
Serializable,
]
public class CodeTryCatchFinallyStatement : CodeStatement {
private CodeStatementCollection tryStatments = new CodeStatementCollection();
private CodeStatementCollection finallyStatments = new CodeStatementCollection();
private CodeCatchClauseCollection catchClauses = new CodeCatchClauseCollection();
///
///
/// Initializes a new instance of .
///
///
public CodeTryCatchFinallyStatement() {
}
///
///
/// Initializes a new instance of using the specified statements to try and catch
/// clauses.
///
///
public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses) {
TryStatements.AddRange(tryStatements);
CatchClauses.AddRange(catchClauses);
}
///
///
/// Initializes a new instance of using the specified statements to
/// try, catch clauses, and finally statements.
///
///
public CodeTryCatchFinallyStatement(CodeStatement[] tryStatements, CodeCatchClause[] catchClauses, CodeStatement[] finallyStatements) {
TryStatements.AddRange(tryStatements);
CatchClauses.AddRange(catchClauses);
FinallyStatements.AddRange(finallyStatements);
}
///
///
/// Gets or sets
/// the try statements to try.
///
///
public CodeStatementCollection TryStatements {
get {
return tryStatments;
}
}
///
///
/// Gets or sets the catch clauses to use.
///
///
public CodeCatchClauseCollection CatchClauses {
get {
return catchClauses;
}
}
///
///
/// Gets or sets
/// the finally statements to use.
///
///
public CodeStatementCollection FinallyStatements {
get {
return finallyStatments;
}
}
}
}
// 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
- InfoCardProofToken.cs
- PageParser.cs
- ExceptionHandler.cs
- TTSEngineProxy.cs
- StrokeFIndices.cs
- WebServiceErrorEvent.cs
- ClientEventManager.cs
- Process.cs
- TemplateBuilder.cs
- SuppressMergeCheckAttribute.cs
- PixelFormat.cs
- TextFindEngine.cs
- RadioButtonStandardAdapter.cs
- Trace.cs
- ThreadAttributes.cs
- CodeDomSerializerException.cs
- ConstrainedGroup.cs
- LinkedResource.cs
- SerTrace.cs
- ConnectionDemuxer.cs
- AttachmentService.cs
- XsltException.cs
- BamlRecords.cs
- DataGridSortingEventArgs.cs
- HttpHandlerAction.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- RegisteredArrayDeclaration.cs
- TemplateColumn.cs
- _Connection.cs
- WebPartConnection.cs
- SelectingProviderEventArgs.cs
- SplitContainer.cs
- PluralizationService.cs
- TextBoxAutomationPeer.cs
- PermissionToken.cs
- TextBoxLine.cs
- HtmlInputHidden.cs
- DataGridViewRowPrePaintEventArgs.cs
- Thread.cs
- OuterGlowBitmapEffect.cs
- VideoDrawing.cs
- OutputCacheProfile.cs
- Pens.cs
- HttpCapabilitiesEvaluator.cs
- ColorEditor.cs
- HttpRuntimeSection.cs
- DataRelationPropertyDescriptor.cs
- MetaTableHelper.cs
- DocumentScope.cs
- XmlIlVisitor.cs
- NamedObject.cs
- SafeNativeMethods.cs
- MethodSet.cs
- GridPattern.cs
- BooleanSwitch.cs
- CallContext.cs
- BlurBitmapEffect.cs
- CapabilitiesState.cs
- ScriptServiceAttribute.cs
- UpdatableWrapper.cs
- RayHitTestParameters.cs
- Deflater.cs
- Choices.cs
- CacheDependency.cs
- XmlSchemaAll.cs
- RectangleGeometry.cs
- FunctionDefinition.cs
- SerializerProvider.cs
- ToolStripRenderer.cs
- DataServiceResponse.cs
- HttpHeaderCollection.cs
- DecodeHelper.cs
- FormatConvertedBitmap.cs
- GridViewDeleteEventArgs.cs
- DetailsViewPagerRow.cs
- Geometry.cs
- XmlSchemaObject.cs
- TrackingExtract.cs
- SqlFacetAttribute.cs
- EntityDataSourceEntitySetNameItem.cs
- XamlPathDataSerializer.cs
- ErrorTableItemStyle.cs
- XmlSubtreeReader.cs
- GC.cs
- NavigationService.cs
- ParserStreamGeometryContext.cs
- EditorZoneBase.cs
- DrawListViewSubItemEventArgs.cs
- DBBindings.cs
- BooleanSwitch.cs
- Merger.cs
- QuaternionAnimation.cs
- ValidationSummaryDesigner.cs
- DataSourceXmlTextReader.cs
- GradientStop.cs
- FileNotFoundException.cs
- ImageAutomationPeer.cs
- Resources.Designer.cs
- GetLastErrorDetailsRequest.cs
- StructuredProperty.cs