Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Resources / StreamResourceInfo.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProfileEventArgs.cs
- AmbientEnvironment.cs
- IgnoreFlushAndCloseStream.cs
- TouchesOverProperty.cs
- CustomGrammar.cs
- FrameDimension.cs
- BoundField.cs
- PeerTransportBindingElement.cs
- ValidationService.cs
- MemberAccessException.cs
- httpserverutility.cs
- NetworkInformationException.cs
- GridErrorDlg.cs
- GeneralTransform.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- OpCellTreeNode.cs
- WebServicesDescriptionAttribute.cs
- URLString.cs
- SHA256CryptoServiceProvider.cs
- InvalidDataException.cs
- RegexNode.cs
- ColorEditor.cs
- Transactions.cs
- WorkflowMarkupSerializationManager.cs
- TogglePatternIdentifiers.cs
- AuthorizationRule.cs
- GridViewSelectEventArgs.cs
- NotImplementedException.cs
- Process.cs
- ChangeNode.cs
- ContextMenuStrip.cs
- TypeResolver.cs
- SignatureHelper.cs
- PropertyGroupDescription.cs
- Activity.cs
- SafeCoTaskMem.cs
- MatrixAnimationUsingKeyFrames.cs
- SerializableAttribute.cs
- TransactionScope.cs
- SimpleBitVector32.cs
- UnsafeNativeMethods.cs
- DataControlFieldCell.cs
- PathFigure.cs
- SmiRequestExecutor.cs
- StrokeCollectionDefaultValueFactory.cs
- LineBreak.cs
- FrameworkElementAutomationPeer.cs
- QilList.cs
- GB18030Encoding.cs
- GeneralTransform2DTo3D.cs
- GenericUriParser.cs
- GenerateHelper.cs
- ColumnCollection.cs
- TrackBarRenderer.cs
- QilXmlWriter.cs
- WarningException.cs
- EventLogger.cs
- AuthenticationModuleElementCollection.cs
- TargetException.cs
- MarshalByRefObject.cs
- CryptoConfig.cs
- WsrmTraceRecord.cs
- _SecureChannel.cs
- WebPartManager.cs
- DataGridViewColumnHeaderCell.cs
- HtmlControl.cs
- CapacityStreamGeometryContext.cs
- PageThemeBuildProvider.cs
- Cursors.cs
- AssemblyFilter.cs
- SmiMetaData.cs
- IndentedWriter.cs
- XamlSerializationHelper.cs
- TreeViewImageIndexConverter.cs
- GridViewDeleteEventArgs.cs
- ZipArchive.cs
- SignatureSummaryDialog.cs
- TabPageDesigner.cs
- AccessDataSource.cs
- Types.cs
- DiagnosticsConfiguration.cs
- ToolStripDropDownDesigner.cs
- HwndStylusInputProvider.cs
- CorruptingExceptionCommon.cs
- ErrorWebPart.cs
- _TLSstream.cs
- Renderer.cs
- SHA1Cng.cs
- OdbcConnectionFactory.cs
- IndicFontClient.cs
- GridPattern.cs
- MetadataArtifactLoaderCompositeResource.cs
- PropertyGridEditorPart.cs
- InternalControlCollection.cs
- Range.cs
- TaskbarItemInfo.cs
- Repeater.cs
- PolicyStatement.cs
- DataServiceSaveChangesEventArgs.cs
- RunClient.cs