Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Resources / StreamResourceInfo.cs / 1 / StreamResourceInfo.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// Description:
// Class definition for StreamResourceInfo, it will keep the
// information for a given stream resource, such as .jpg, .ico
// etc.
//
// Spec: http://avalon/app/Navigation/Resource%20Loading%20Spec.doc
//
// History:
// 03/24/2003: weibz Created
// 06/12/2003: weibz Moved to WCP tree.
//
//---------------------------------------------------------------------------
using System.IO;
using System;
namespace System.Windows.Resources
{
///
/// Class StreamResourceInfo
///
public class StreamResourceInfo
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
#region Constructors
///
/// default costructor
///
public StreamResourceInfo()
{
}
///
/// constructor
///
///
///
///
public StreamResourceInfo(Stream stream, String contentType)
{
_stream = stream;
_contentType = contentType;
}
#endregion Constructors
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
#region Public Properties
///
/// ContentType
///
public string ContentType
{
get { return _contentType; }
}
///
/// Stream for the resource
///
public Stream Stream
{
get { return _stream; }
}
#endregion Public Properties
//------------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#region Private Fields
private string _contentType;
private Stream _stream;
#endregion Private Fields
}
///
/// class ContentTypes
///
public sealed class ContentTypes
{
///
/// XamlContenType
///
public const string XamlContentType = "applicaton/xaml+xml" ;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// Description:
// Class definition for StreamResourceInfo, it will keep the
// information for a given stream resource, such as .jpg, .ico
// etc.
//
// Spec: http://avalon/app/Navigation/Resource%20Loading%20Spec.doc
//
// History:
// 03/24/2003: weibz Created
// 06/12/2003: weibz Moved to WCP tree.
//
//---------------------------------------------------------------------------
using System.IO;
using System;
namespace System.Windows.Resources
{
///
/// Class StreamResourceInfo
///
public class StreamResourceInfo
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
#region Constructors
///
/// default costructor
///
public StreamResourceInfo()
{
}
///
/// constructor
///
///
///
///
public StreamResourceInfo(Stream stream, String contentType)
{
_stream = stream;
_contentType = contentType;
}
#endregion Constructors
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
#region Public Properties
///
/// ContentType
///
public string ContentType
{
get { return _contentType; }
}
///
/// Stream for the resource
///
public Stream Stream
{
get { return _stream; }
}
#endregion Public Properties
//------------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#region Private Fields
private string _contentType;
private Stream _stream;
#endregion Private Fields
}
///
/// class ContentTypes
///
public sealed class ContentTypes
{
///
/// XamlContenType
///
public const string XamlContentType = "applicaton/xaml+xml" ;
}
}
// 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
- ProtectedUri.cs
- Task.cs
- FileVersion.cs
- ConnectionManagementSection.cs
- AttributeQuery.cs
- MDIClient.cs
- DateTimeOffsetConverter.cs
- WsiProfilesElement.cs
- FontFamilyConverter.cs
- panel.cs
- DynamicDocumentPaginator.cs
- RetrieveVirtualItemEventArgs.cs
- Error.cs
- AppModelKnownContentFactory.cs
- RecognizeCompletedEventArgs.cs
- TextDecorationCollection.cs
- ApplicationInterop.cs
- Size3DConverter.cs
- panel.cs
- TableCellCollection.cs
- PlainXmlSerializer.cs
- DataGrid.cs
- NameObjectCollectionBase.cs
- _ScatterGatherBuffers.cs
- TimeSpanConverter.cs
- PropVariant.cs
- ArithmeticException.cs
- CodeSubDirectory.cs
- TiffBitmapEncoder.cs
- GenerateTemporaryTargetAssembly.cs
- CacheRequest.cs
- RelatedPropertyManager.cs
- AssemblyName.cs
- HtmlTableCellCollection.cs
- FormViewPagerRow.cs
- Item.cs
- smtppermission.cs
- SqlSelectStatement.cs
- dataSvcMapFileLoader.cs
- SingleObjectCollection.cs
- BinHexDecoder.cs
- ConsumerConnectionPointCollection.cs
- BackgroundWorker.cs
- XmlKeywords.cs
- RuntimeConfigLKG.cs
- XamlSerializerUtil.cs
- TextEndOfParagraph.cs
- ScriptResourceHandler.cs
- _CookieModule.cs
- XmlAggregates.cs
- AnchorEditor.cs
- InheritanceAttribute.cs
- DbTransaction.cs
- DrawingDrawingContext.cs
- DataGridRowEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- PasswordBoxAutomationPeer.cs
- clipboard.cs
- EventMap.cs
- LinearKeyFrames.cs
- ComponentRenameEvent.cs
- GenericIdentity.cs
- Predicate.cs
- DiagnosticSection.cs
- SpecularMaterial.cs
- XamlNamespaceHelper.cs
- DesignerWithHeader.cs
- MarkupExtensionSerializer.cs
- StyleModeStack.cs
- WebPageTraceListener.cs
- ListChangedEventArgs.cs
- FlowDocument.cs
- ImportCatalogPart.cs
- ContentTextAutomationPeer.cs
- FormatException.cs
- ProcessHostConfigUtils.cs
- TypeNameParser.cs
- MembershipPasswordException.cs
- AstTree.cs
- PartialClassGenerationTask.cs
- ImageBrush.cs
- TextDecoration.cs
- BitmapEffectState.cs
- Array.cs
- Storyboard.cs
- ColumnMap.cs
- PolyQuadraticBezierSegment.cs
- BezierSegment.cs
- ListViewSelectEventArgs.cs
- InstanceOwnerException.cs
- WrapperEqualityComparer.cs
- FileDialogPermission.cs
- LowerCaseStringConverter.cs
- Variant.cs
- FontFamily.cs
- FixedElement.cs
- UserControlParser.cs
- InternalsVisibleToAttribute.cs
- DeclarativeExpressionConditionDeclaration.cs
- CodeEventReferenceExpression.cs