Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / MS / Internal / IO / Packaging / IndexingContentUnit.cs / 1 / IndexingContentUnit.cs
//----------------------------------------------------------------------------
//
// File: IndexingContentUnit.cs
//
// Description:
// Object returned by the NextContentUnit method of XamlFilter.
// An IndexingContentUnit contains a chunk and its contents.
//
// History:
// 01/08/2004 - johnlarc Created
// 08/26/2004: JohnLarc: Removed access to indexing filters from managed code.
//
// Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using MS.Internal.Interop; // for CHUNK_BREAKTYPE
namespace MS.Internal.IO.Packaging
{
///A descriptor for a chunk, as returned by XamlFilter.NextContentUnit.
internal class IndexingContentUnit : ManagedChunk
{
///Build a contents chunk, passing the contents string and specifying whether it comes from a Glyphs element.
///The value of the chunk's contents property.
///An arbitrary Uint32 to identify each chunk returned by IFilter.GetChunk.
///The opening break for the chunk.
///A description of the property represented by the chunk.
///The locale ID for the chunk.
internal IndexingContentUnit(
string contents,
uint chunkID,
CHUNK_BREAKTYPE breakType,
ManagedFullPropSpec attribute,
uint lcid)
: base(chunkID, breakType, attribute, lcid, CHUNKSTATE.CHUNK_TEXT)
{
_contents = contents;
}
///
/// A utility to be used when one wants to reuse
/// one object to hold different values in succession.
///
internal void InitIndexingContentUnit(
string contents,
uint chunkID,
CHUNK_BREAKTYPE breakType,
ManagedFullPropSpec attribute,
uint lcid)
{
_contents = contents;
ID = chunkID;
BreakType = breakType;
Attribute = attribute;
Locale = lcid;
}
///The chunk's contents.
internal string Text
{
get
{
return _contents;
}
}
private string _contents;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
// File: IndexingContentUnit.cs
//
// Description:
// Object returned by the NextContentUnit method of XamlFilter.
// An IndexingContentUnit contains a chunk and its contents.
//
// History:
// 01/08/2004 - johnlarc Created
// 08/26/2004: JohnLarc: Removed access to indexing filters from managed code.
//
// Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using MS.Internal.Interop; // for CHUNK_BREAKTYPE
namespace MS.Internal.IO.Packaging
{
///A descriptor for a chunk, as returned by XamlFilter.NextContentUnit.
internal class IndexingContentUnit : ManagedChunk
{
///Build a contents chunk, passing the contents string and specifying whether it comes from a Glyphs element.
///The value of the chunk's contents property.
///An arbitrary Uint32 to identify each chunk returned by IFilter.GetChunk.
///The opening break for the chunk.
///A description of the property represented by the chunk.
///The locale ID for the chunk.
internal IndexingContentUnit(
string contents,
uint chunkID,
CHUNK_BREAKTYPE breakType,
ManagedFullPropSpec attribute,
uint lcid)
: base(chunkID, breakType, attribute, lcid, CHUNKSTATE.CHUNK_TEXT)
{
_contents = contents;
}
///
/// A utility to be used when one wants to reuse
/// one object to hold different values in succession.
///
internal void InitIndexingContentUnit(
string contents,
uint chunkID,
CHUNK_BREAKTYPE breakType,
ManagedFullPropSpec attribute,
uint lcid)
{
_contents = contents;
ID = chunkID;
BreakType = breakType;
Attribute = attribute;
Locale = lcid;
}
///The chunk's contents.
internal string Text
{
get
{
return _contents;
}
}
private string _contents;
}
}
// 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
- ConfigurationSectionGroup.cs
- DataGridViewUtilities.cs
- PasswordDeriveBytes.cs
- CutCopyPasteHelper.cs
- PageThemeParser.cs
- StsCommunicationException.cs
- TextParaClient.cs
- MergePropertyDescriptor.cs
- UserPersonalizationStateInfo.cs
- SimpleFileLog.cs
- ColorConvertedBitmap.cs
- Tablet.cs
- HttpCapabilitiesSectionHandler.cs
- oledbmetadatacollectionnames.cs
- KnowledgeBase.cs
- MultiAsyncResult.cs
- Journal.cs
- ApplicationActivator.cs
- AxHost.cs
- Rule.cs
- XmlNodeList.cs
- AudioBase.cs
- Rect3D.cs
- InternalConfigEventArgs.cs
- RowsCopiedEventArgs.cs
- listitem.cs
- NavigationPropertyEmitter.cs
- IndexerNameAttribute.cs
- CompilerGeneratedAttribute.cs
- MissingMethodException.cs
- CallContext.cs
- StringKeyFrameCollection.cs
- PrePrepareMethodAttribute.cs
- MembershipUser.cs
- TreeNodeStyle.cs
- QueryableDataSourceView.cs
- DataGridTextBox.cs
- XmlQueryType.cs
- DataGridViewControlCollection.cs
- XmlLinkedNode.cs
- URL.cs
- RemoteWebConfigurationHostServer.cs
- GeneratedContractType.cs
- EdmConstants.cs
- RichTextBox.cs
- HttpHandlersSection.cs
- KeyValueConfigurationCollection.cs
- Drawing.cs
- KeyNotFoundException.cs
- XmlMessageFormatter.cs
- DeferrableContent.cs
- QueryResponse.cs
- GradientSpreadMethodValidation.cs
- VBIdentifierDesigner.xaml.cs
- EventItfInfo.cs
- TraceUtils.cs
- DoubleLinkList.cs
- TileBrush.cs
- SimpleBitVector32.cs
- FramingDecoders.cs
- ConsumerConnectionPointCollection.cs
- ControlEvent.cs
- MouseEvent.cs
- DataGridView.cs
- MarkupObject.cs
- X509SubjectKeyIdentifierClause.cs
- TraceProvider.cs
- SubMenuStyle.cs
- Validator.cs
- Rect3D.cs
- RayHitTestParameters.cs
- CompilerGeneratedAttribute.cs
- ipaddressinformationcollection.cs
- CompilationUtil.cs
- RadialGradientBrush.cs
- CategoryNameCollection.cs
- cookie.cs
- SatelliteContractVersionAttribute.cs
- IIS7ConfigurationLoader.cs
- GetWinFXPath.cs
- SignatureHelper.cs
- KeyGestureConverter.cs
- ButtonAutomationPeer.cs
- XmlSchemaSimpleContent.cs
- PrintDialog.cs
- DrawingContextWalker.cs
- CaseCqlBlock.cs
- shaper.cs
- QueueProcessor.cs
- ClusterSafeNativeMethods.cs
- FrugalMap.cs
- ContainerUtilities.cs
- TiffBitmapEncoder.cs
- OleDbStruct.cs
- TypeSystem.cs
- DBDataPermission.cs
- ProvidersHelper.cs
- Policy.cs
- MouseButtonEventArgs.cs
- ParagraphVisual.cs