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
- DictionaryEntry.cs
- SqlBulkCopyColumnMappingCollection.cs
- AssociationTypeEmitter.cs
- ByteStack.cs
- StylusPointPropertyUnit.cs
- FixedSOMPageConstructor.cs
- IISMapPath.cs
- HttpSysSettings.cs
- EventDescriptor.cs
- BeginSelectCardRequest.cs
- MapPathBasedVirtualPathProvider.cs
- XPathNodeList.cs
- StoreAnnotationsMap.cs
- PropertyToken.cs
- OdbcException.cs
- MDIControlStrip.cs
- SpecialNameAttribute.cs
- PartitionResolver.cs
- JavascriptCallbackResponseProperty.cs
- BamlResourceDeserializer.cs
- LinqToSqlWrapper.cs
- MetadataItemSerializer.cs
- HtmlTableCell.cs
- PageCanvasSize.cs
- Rotation3D.cs
- ServiceRouteHandler.cs
- EncodingDataItem.cs
- RectangleConverter.cs
- CodeMemberMethod.cs
- KeySplineConverter.cs
- Line.cs
- HelpInfo.cs
- EdmSchemaError.cs
- Filter.cs
- QuaternionConverter.cs
- Base64Decoder.cs
- ClickablePoint.cs
- SystemInfo.cs
- MemoryResponseElement.cs
- Rectangle.cs
- DataFormats.cs
- _AutoWebProxyScriptWrapper.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- SqlDataAdapter.cs
- precedingsibling.cs
- CacheAxisQuery.cs
- ContextMenuStrip.cs
- SynchronizationScope.cs
- ConnectionManagementElement.cs
- EffectiveValueEntry.cs
- DocumentGridPage.cs
- StickyNote.cs
- SqlDataSourceSelectingEventArgs.cs
- FileUtil.cs
- EnvironmentPermission.cs
- HttpRequestCacheValidator.cs
- SQLBinary.cs
- TreeNodeStyleCollectionEditor.cs
- HashCodeCombiner.cs
- XmlNamespaceDeclarationsAttribute.cs
- TrustLevel.cs
- TypedColumnHandler.cs
- CompiledRegexRunner.cs
- XmlEventCache.cs
- RuleCache.cs
- ILGenerator.cs
- MetadataArtifactLoaderComposite.cs
- RegularExpressionValidator.cs
- CorrelationScope.cs
- FileDialog.cs
- AdRotatorDesigner.cs
- HandleRef.cs
- BaseCAMarshaler.cs
- DataRecordInfo.cs
- SharedHttpTransportManager.cs
- VisualTreeUtils.cs
- ResourceDefaultValueAttribute.cs
- TypeExtensionSerializer.cs
- log.cs
- PerfCounters.cs
- NonVisualControlAttribute.cs
- SingleObjectCollection.cs
- ObjectListDesigner.cs
- KeyFrames.cs
- ValidationError.cs
- ApplicationBuildProvider.cs
- AbstractExpressions.cs
- PnrpPeerResolverElement.cs
- QuotedPrintableStream.cs
- StreamReader.cs
- PackWebResponse.cs
- TemplateEditingVerb.cs
- SerializerProvider.cs
- CookielessData.cs
- HotSpotCollection.cs
- ReflectionTypeLoadException.cs
- DataColumnMapping.cs
- Attributes.cs
- StorageScalarPropertyMapping.cs
- PeerToPeerException.cs