Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- ProgressBarHighlightConverter.cs
- IdentityNotMappedException.cs
- ContainerControl.cs
- AdapterUtil.cs
- BindingExpression.cs
- FixedDSBuilder.cs
- Activator.cs
- ELinqQueryState.cs
- TextTreePropertyUndoUnit.cs
- ParagraphVisual.cs
- TextBoxBase.cs
- ExceptionAggregator.cs
- UserInitiatedNavigationPermission.cs
- CommandID.cs
- FrugalList.cs
- RegionInfo.cs
- SmiSettersStream.cs
- SkipStoryboardToFill.cs
- OleServicesContext.cs
- ManualWorkflowSchedulerService.cs
- SimpleLine.cs
- AssemblyAttributesGoHere.cs
- AttachedPropertiesService.cs
- DataTableReaderListener.cs
- Array.cs
- EdgeModeValidation.cs
- InfoCardTraceRecord.cs
- JapaneseCalendar.cs
- Camera.cs
- Mappings.cs
- DbExpressionVisitor.cs
- RegexWriter.cs
- LiteralControl.cs
- MimeTypeAttribute.cs
- Button.cs
- ObjectCloneHelper.cs
- _SpnDictionary.cs
- StylusShape.cs
- PropertyItemInternal.cs
- GeometryDrawing.cs
- Grant.cs
- Queue.cs
- _AcceptOverlappedAsyncResult.cs
- ParentQuery.cs
- Decoder.cs
- XmlSignificantWhitespace.cs
- CacheChildrenQuery.cs
- Sequence.cs
- DesignerTransaction.cs
- BookmarkScopeHandle.cs
- TdsParserStateObject.cs
- Substitution.cs
- TextStore.cs
- ZipIOLocalFileDataDescriptor.cs
- BasicExpressionVisitor.cs
- XpsPackagingPolicy.cs
- AffineTransform3D.cs
- CatalogPartCollection.cs
- SerialErrors.cs
- CssTextWriter.cs
- LocatorPartList.cs
- GridViewRowPresenterBase.cs
- wmiprovider.cs
- FormViewRow.cs
- EdmSchemaAttribute.cs
- ContextMenuAutomationPeer.cs
- CngProvider.cs
- ListItemConverter.cs
- QilDataSource.cs
- SoapAttributeOverrides.cs
- storagemappingitemcollection.viewdictionary.cs
- StaticContext.cs
- CacheMemory.cs
- RootAction.cs
- Int16Storage.cs
- RegularExpressionValidator.cs
- FilteredReadOnlyMetadataCollection.cs
- OutputWindow.cs
- Version.cs
- PropertyConverter.cs
- StickyNoteHelper.cs
- SqlDataRecord.cs
- ToolTipService.cs
- DataList.cs
- MutexSecurity.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ProcessModelSection.cs
- Trustee.cs
- ProviderBase.cs
- complextypematerializer.cs
- FieldDescriptor.cs
- ObjectQueryProvider.cs
- RenderData.cs
- PropertyCollection.cs
- FunctionUpdateCommand.cs
- MultiSelectRootGridEntry.cs
- DesignerActionVerbList.cs
- EntityTypeBase.cs
- DispatcherHooks.cs
- Int32Storage.cs