Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / IO / Packaging / PackagePartCollection.cs / 1 / PackagePartCollection.cs
//------------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// Description:
// This is a base abstract class for PackagePartCollection. This is a part of the
// MMCF Packaging Layer
//
// History:
// 01/03/2004: [....]: Initial creation. [Stubs only]
// 03/01/2004: [....]: Implemented the functionality for all the members.
//-----------------------------------------------------------------------------
// Allow use of presharp warning numbers [6506] unknown to the compiler
#pragma warning disable 1634, 1691
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
namespace System.IO.Packaging
{
///
/// This class is used to get an enumerator for the Parts in a container.
/// This is a part of the Packaging Layer APIs
///
public class PackagePartCollection : IEnumerable
{
//-----------------------------------------------------
//
// Public Constructors
//
//-----------------------------------------------------
// None
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
// None
//------------------------------------------------------
//
// Public Methods
//
//------------------------------------------------------
#region Public Methods
///
/// Returns an enumerator over all the Parts in the container
///
///
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
///
/// Returns an enumerator over all the Parts in the container
///
///
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
///
/// Returns an enumerator over all the Parts in the Container
///
///
public IEnumerator GetEnumerator()
{
//PRESHARP:Warning 6506 Parameter to this public method must be validated: A null-dereference can occur here.
//The Dictionary.Values property always returns a collection, even if empty. It never returns a null.
#pragma warning disable 6506
return _partList.Values.GetEnumerator();
#pragma warning restore 6506
}
#endregion Public Methods
//-----------------------------------------------------
//
// Public Events
//
//------------------------------------------------------
// None
//-----------------------------------------------------
//
// Internal Constructors
//
//-----------------------------------------------------
#region Internal Constructor
internal PackagePartCollection(SortedList partList)
{
Debug.Assert(partList != null, "partDictionary parameter cannot be null");
_partList = partList;
}
#endregion Internal Constructor
//-----------------------------------------------------
//
// Internal Properties
//
//------------------------------------------------------
// None
//-----------------------------------------------------
//
// Internal Methods
//
//------------------------------------------------------
// None
//------------------------------------------------------
//
// Internal Events
//
//-----------------------------------------------------
// None
//------------------------------------------------------
//
// Private Methods
//
//-----------------------------------------------------
// None
//-----------------------------------------------------
//
// Private Fields
//
//-----------------------------------------------------
#region Private Members
private SortedList _partList;
#endregion Private Members
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _StreamFramer.cs
- ReadingWritingEntityEventArgs.cs
- Label.cs
- XmlLanguageConverter.cs
- Int64KeyFrameCollection.cs
- SqlClientWrapperSmiStreamChars.cs
- RightsManagementInformation.cs
- ListChangedEventArgs.cs
- LayoutTableCell.cs
- Hash.cs
- CellParagraph.cs
- CfgArc.cs
- ArrangedElementCollection.cs
- ProcessThreadCollection.cs
- TrackingRecordPreFilter.cs
- WorkflowWebHostingModule.cs
- PartialArray.cs
- FunctionNode.cs
- DataGridItem.cs
- ToolZone.cs
- RawStylusInputReport.cs
- ListViewItem.cs
- EventWaitHandleSecurity.cs
- TextBoxRenderer.cs
- QilBinary.cs
- SizeAnimationUsingKeyFrames.cs
- MissingMemberException.cs
- TaskFileService.cs
- OleDbDataAdapter.cs
- HttpListener.cs
- XhtmlBasicSelectionListAdapter.cs
- HebrewNumber.cs
- DataGridViewSelectedRowCollection.cs
- TTSEvent.cs
- XamlTreeBuilder.cs
- RequestCacheValidator.cs
- SimplePropertyEntry.cs
- HostExecutionContextManager.cs
- XmlTextReader.cs
- RootBrowserWindow.cs
- RectangleConverter.cs
- XMLSchema.cs
- AuthenticatedStream.cs
- webclient.cs
- FacetValueContainer.cs
- TraceContextRecord.cs
- DataGridViewAccessibleObject.cs
- PublishLicense.cs
- StrongName.cs
- DataSourceControlBuilder.cs
- StreamInfo.cs
- MissingMemberException.cs
- AsymmetricKeyExchangeDeformatter.cs
- Type.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- PassportAuthenticationModule.cs
- ListManagerBindingsCollection.cs
- ComboBoxAutomationPeer.cs
- ParseChildrenAsPropertiesAttribute.cs
- SrgsDocumentParser.cs
- JoinElimination.cs
- WebPartAddingEventArgs.cs
- InputProcessorProfiles.cs
- PersonalizableAttribute.cs
- HtmlTableRowCollection.cs
- ClientApiGenerator.cs
- ByteAnimationUsingKeyFrames.cs
- XamlPathDataSerializer.cs
- SecurityUtils.cs
- MenuItemBinding.cs
- regiisutil.cs
- XmlSchemaException.cs
- QuaternionAnimation.cs
- InputScopeManager.cs
- ImageFormat.cs
- RegisteredDisposeScript.cs
- cookie.cs
- TimeSpanParse.cs
- WebPartMenu.cs
- OleDragDropHandler.cs
- PersianCalendar.cs
- _PooledStream.cs
- DataGridViewCellFormattingEventArgs.cs
- EdmProviderManifest.cs
- Encoder.cs
- CircleEase.cs
- DataBinding.cs
- PreviewPrintController.cs
- BooleanFacetDescriptionElement.cs
- SecurityToken.cs
- FormViewCommandEventArgs.cs
- HtmlToClrEventProxy.cs
- ItemCollectionEditor.cs
- UpDownEvent.cs
- FileDialog_Vista.cs
- CodeGeneratorOptions.cs
- ReferenceEqualityComparer.cs
- CollectionType.cs
- BindValidationContext.cs
- ObjectDataSourceDisposingEventArgs.cs