Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / Resources / StreamResourceInfo.cs / 1 / 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
- SqlStatistics.cs
- ComplexTypeEmitter.cs
- CustomValidator.cs
- clipboard.cs
- Highlights.cs
- DbProviderManifest.cs
- WindowsAuthenticationEventArgs.cs
- DataService.cs
- HttpConfigurationSystem.cs
- CustomCategoryAttribute.cs
- PassportAuthentication.cs
- ScriptServiceAttribute.cs
- ResourceDictionary.cs
- SqlCachedBuffer.cs
- CalendarModeChangedEventArgs.cs
- ProjectionPlanCompiler.cs
- SqlErrorCollection.cs
- Style.cs
- SizeChangedEventArgs.cs
- DataPagerFieldItem.cs
- NumberEdit.cs
- Maps.cs
- SafeSecurityHelper.cs
- WorkflowViewElement.cs
- StickyNoteContentControl.cs
- SharedConnectionWorkflowTransactionService.cs
- OleDbStruct.cs
- EventWaitHandleSecurity.cs
- Sequence.cs
- MD5CryptoServiceProvider.cs
- SerializationSectionGroup.cs
- WindowsListView.cs
- QilXmlReader.cs
- Comparer.cs
- QueryableDataSource.cs
- RequestTimeoutManager.cs
- DataFormat.cs
- MultiTrigger.cs
- BinaryFormatter.cs
- SystemKeyConverter.cs
- SHA512.cs
- CodeParameterDeclarationExpression.cs
- WebServiceErrorEvent.cs
- XmlWrappingWriter.cs
- RtfFormatStack.cs
- AssemblyAttributes.cs
- _HeaderInfo.cs
- CompilerError.cs
- SqlStatistics.cs
- XsltSettings.cs
- DoubleKeyFrameCollection.cs
- WebPartTransformer.cs
- LineUtil.cs
- APCustomTypeDescriptor.cs
- CodeArrayCreateExpression.cs
- DirectionalLight.cs
- PeerIPHelper.cs
- TreeNodeMouseHoverEvent.cs
- CompilationSection.cs
- AppSettingsExpressionBuilder.cs
- ConditionCollection.cs
- EncoderFallback.cs
- DeferredElementTreeState.cs
- SystemIPAddressInformation.cs
- WorkflowTransactionOptions.cs
- StringComparer.cs
- XmlHierarchicalEnumerable.cs
- HexParser.cs
- XPathSelectionIterator.cs
- PerformanceCounterNameAttribute.cs
- ResourcePool.cs
- EntityDataSourceWrapperCollection.cs
- SocketException.cs
- XmlNotation.cs
- Enumerable.cs
- MetadataUtilsSmi.cs
- XmlSchemaSequence.cs
- LocalizedNameDescriptionPair.cs
- NetTcpBinding.cs
- RNGCryptoServiceProvider.cs
- SystemNetHelpers.cs
- NodeFunctions.cs
- HwndSourceParameters.cs
- Size3D.cs
- PolicyLevel.cs
- FieldToken.cs
- Messages.cs
- BinHexEncoder.cs
- DbgCompiler.cs
- MarkupExtensionSerializer.cs
- Variable.cs
- HorizontalAlignConverter.cs
- CorrelationInitializer.cs
- SyntaxCheck.cs
- ColumnMapTranslator.cs
- TreeViewItem.cs
- ArrayList.cs
- CommandBinding.cs
- CopyOnWriteList.cs
- InvalidDataException.cs