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
- MultiBinding.cs
- EntityDataSourceStatementEditorForm.cs
- MaterialGroup.cs
- TraceContextEventArgs.cs
- HtmlTableCellCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- Grant.cs
- RawMouseInputReport.cs
- ButtonFlatAdapter.cs
- SafeViewOfFileHandle.cs
- ScrollViewer.cs
- Decoder.cs
- PageBuildProvider.cs
- ControlValuePropertyAttribute.cs
- WebZone.cs
- StyleConverter.cs
- CompilerError.cs
- Merger.cs
- BindingWorker.cs
- ISSmlParser.cs
- TextLine.cs
- ProgressiveCrcCalculatingStream.cs
- StateMachineSubscriptionManager.cs
- SqlCharStream.cs
- PublisherIdentityPermission.cs
- MarkupCompilePass2.cs
- ProofTokenCryptoHandle.cs
- ConsoleTraceListener.cs
- WebReferencesBuildProvider.cs
- Predicate.cs
- ConsoleKeyInfo.cs
- SemanticResultValue.cs
- CategoryList.cs
- FormViewPageEventArgs.cs
- _FtpControlStream.cs
- Stylesheet.cs
- XamlStream.cs
- WeakReferenceList.cs
- OdbcConnectionOpen.cs
- Helper.cs
- SubclassTypeValidator.cs
- DynamicVirtualDiscoSearcher.cs
- ChannelDispatcherCollection.cs
- XmlILAnnotation.cs
- Triangle.cs
- GetWinFXPath.cs
- PropertyEntry.cs
- GeometryDrawing.cs
- MruCache.cs
- DocumentPaginator.cs
- XmlElementAttribute.cs
- ConfigurationSettings.cs
- TextEffect.cs
- pingexception.cs
- SystemIcmpV4Statistics.cs
- TextServicesCompartmentEventSink.cs
- Vector3DAnimationBase.cs
- DelayLoadType.cs
- PasswordPropertyTextAttribute.cs
- ComplexBindingPropertiesAttribute.cs
- WebServicesInteroperability.cs
- ThreadStaticAttribute.cs
- _SSPIWrapper.cs
- RequestQueue.cs
- InArgumentConverter.cs
- HtmlInputText.cs
- TableLayoutColumnStyleCollection.cs
- TypeRestriction.cs
- prefixendpointaddressmessagefilter.cs
- ImageDrawing.cs
- NavigatorInput.cs
- PersonalizationStateInfoCollection.cs
- SvcMapFileSerializer.cs
- Soap12FormatExtensions.cs
- SpellCheck.cs
- ParameterCollection.cs
- RangeValidator.cs
- TemplateKey.cs
- ReversePositionQuery.cs
- TranslateTransform3D.cs
- HttpServerVarsCollection.cs
- MemberAccessException.cs
- TypeDependencyAttribute.cs
- WebBrowsableAttribute.cs
- Win32KeyboardDevice.cs
- SelectionEditor.cs
- LiteralSubsegment.cs
- TagElement.cs
- DataContractAttribute.cs
- RedistVersionInfo.cs
- ConnectionStringsExpressionBuilder.cs
- QuaternionKeyFrameCollection.cs
- XslNumber.cs
- SafeArrayRankMismatchException.cs
- StringHelper.cs
- XmlMtomWriter.cs
- dbdatarecord.cs
- WebPartDisplayMode.cs
- DispatcherSynchronizationContext.cs
- OutKeywords.cs