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
- PolicyManager.cs
- BamlBinaryReader.cs
- coordinatorfactory.cs
- TextEditor.cs
- CommandDevice.cs
- RequestQueue.cs
- ProfilePropertySettingsCollection.cs
- XmlAttributeProperties.cs
- RequestResizeEvent.cs
- InvokePattern.cs
- DbProviderConfigurationHandler.cs
- Publisher.cs
- AuthenticationSection.cs
- RefType.cs
- DrawingAttributeSerializer.cs
- Dump.cs
- MiniParameterInfo.cs
- DataGridPageChangedEventArgs.cs
- SqlCommand.cs
- MimeObjectFactory.cs
- mda.cs
- TextParagraphCache.cs
- FocusTracker.cs
- FacetChecker.cs
- XmlMtomReader.cs
- DataGridColumnsPage.cs
- DbConnectionPoolGroup.cs
- LiteralLink.cs
- StringUtil.cs
- SystemResourceHost.cs
- CommonXSendMessage.cs
- XPathExpr.cs
- AppDomainCompilerProxy.cs
- sqlser.cs
- SystemInfo.cs
- DataTableMappingCollection.cs
- SchemaComplexType.cs
- SecurityUtils.cs
- _BufferOffsetSize.cs
- CounterSampleCalculator.cs
- IChannel.cs
- PersonalizationEntry.cs
- MenuRendererClassic.cs
- UpdateRecord.cs
- Sql8ConformanceChecker.cs
- HttpCacheVary.cs
- IdleTimeoutMonitor.cs
- ColorKeyFrameCollection.cs
- BitmapVisualManager.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DataBindingExpressionBuilder.cs
- AdjustableArrowCap.cs
- PixelFormat.cs
- BackgroundWorker.cs
- SurrogateEncoder.cs
- DataGridClipboardCellContent.cs
- Emitter.cs
- TextChange.cs
- SRef.cs
- HtmlControl.cs
- FontNamesConverter.cs
- HtmlControlPersistable.cs
- LinqDataSourceSelectEventArgs.cs
- DataGridViewButtonCell.cs
- WebBrowserNavigatingEventHandler.cs
- StatusBarDrawItemEvent.cs
- ClientOptions.cs
- TypeToken.cs
- SpanIndex.cs
- UInt32.cs
- ClientRequest.cs
- SynchronizationContext.cs
- AppDomainManager.cs
- SecurityUtils.cs
- DataGridViewToolTip.cs
- TransactionException.cs
- ViewGenResults.cs
- UIHelper.cs
- SystemFonts.cs
- FileDialogPermission.cs
- JsonDataContract.cs
- BitmapCodecInfo.cs
- CommandExpr.cs
- WebConvert.cs
- SectionVisual.cs
- Configuration.cs
- CodeTypeParameterCollection.cs
- TreeNodeMouseHoverEvent.cs
- Wizard.cs
- Missing.cs
- XmlConvert.cs
- Models.cs
- XamlToRtfWriter.cs
- DataGridRowDetailsEventArgs.cs
- TextElement.cs
- ThrowHelper.cs
- FieldBuilder.cs
- GlyphTypeface.cs
- ContainerTracking.cs
- SafeMILHandle.cs