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
- ReadOnlyDictionary.cs
- Attribute.cs
- WebBrowserContainer.cs
- KeyBinding.cs
- QuaternionConverter.cs
- StringBuilder.cs
- StyleTypedPropertyAttribute.cs
- EntityClientCacheEntry.cs
- XMLSchema.cs
- ToolBarButton.cs
- SmtpLoginAuthenticationModule.cs
- WebUtil.cs
- DocumentOutline.cs
- ContainerUtilities.cs
- WebPartDescription.cs
- KeyConverter.cs
- EntitySqlQueryCacheKey.cs
- TextViewSelectionProcessor.cs
- EntityDataSourceSelectingEventArgs.cs
- SQLDateTimeStorage.cs
- ListenerAdaptersInstallComponent.cs
- SafeCertificateContext.cs
- ImmutableCollection.cs
- RequestCacheEntry.cs
- CodeTypeMemberCollection.cs
- ClusterRegistryConfigurationProvider.cs
- Attribute.cs
- ChangeTracker.cs
- HwndSubclass.cs
- Repeater.cs
- DataTableNewRowEvent.cs
- TrackingProvider.cs
- EditorBrowsableAttribute.cs
- figurelengthconverter.cs
- AlternateViewCollection.cs
- Util.cs
- AmbiguousMatchException.cs
- SwitchAttribute.cs
- NotifyParentPropertyAttribute.cs
- ResXFileRef.cs
- MetadataItem_Static.cs
- HyperLinkField.cs
- BaseComponentEditor.cs
- BamlWriter.cs
- AudioFileOut.cs
- ResourceIDHelper.cs
- HtmlInputImage.cs
- Visual.cs
- StreamUpgradeInitiator.cs
- XmlSiteMapProvider.cs
- XmlTextEncoder.cs
- ExceptionUtil.cs
- ExpressionConverter.cs
- AffineTransform3D.cs
- AmbientProperties.cs
- EncoderNLS.cs
- TogglePattern.cs
- ProjectionCamera.cs
- ContractListAdapter.cs
- TraceHandler.cs
- M3DUtil.cs
- RequestTimeoutManager.cs
- PartManifestEntry.cs
- AnonymousIdentificationModule.cs
- TlsSspiNegotiation.cs
- DbProviderFactoriesConfigurationHandler.cs
- ConnectionPointCookie.cs
- UiaCoreApi.cs
- FlowDocumentReader.cs
- RegexStringValidator.cs
- DisplayNameAttribute.cs
- PerformanceCounterCategory.cs
- Source.cs
- OleDbException.cs
- DragEvent.cs
- Baml6ConstructorInfo.cs
- EmbeddedMailObjectsCollection.cs
- SystemInfo.cs
- InternalDispatchObject.cs
- CallbackTimeoutsBehavior.cs
- Pen.cs
- WsrmTraceRecord.cs
- AsyncSerializedWorker.cs
- XmlDocumentSerializer.cs
- ResourceCategoryAttribute.cs
- RawAppCommandInputReport.cs
- SessionIDManager.cs
- X509CertificateClaimSet.cs
- hebrewshape.cs
- X509Utils.cs
- KnownColorTable.cs
- LockRecoveryTask.cs
- Command.cs
- DetailsViewDeleteEventArgs.cs
- Pair.cs
- SelectionService.cs
- XmlnsDictionary.cs
- TraceSection.cs
- UIElement3DAutomationPeer.cs
- TextParaClient.cs