Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ConfigurationException.cs
- LinkedResourceCollection.cs
- ExpressionVisitor.cs
- SEHException.cs
- CorePropertiesFilter.cs
- Function.cs
- MenuItemCollection.cs
- SqlTopReducer.cs
- BitFlagsGenerator.cs
- RuntimeHandles.cs
- DoubleAnimation.cs
- Schedule.cs
- RequestCacheEntry.cs
- Rect.cs
- XmlSchemaAnnotated.cs
- PropertyGroupDescription.cs
- QilXmlWriter.cs
- EditorZoneBase.cs
- ADConnectionHelper.cs
- Exceptions.cs
- GeometryModel3D.cs
- TitleStyle.cs
- TypeConverterHelper.cs
- CompoundFileStorageReference.cs
- VerificationException.cs
- CodeAccessSecurityEngine.cs
- FilterEventArgs.cs
- XmlUtil.cs
- Regex.cs
- ValidatedControlConverter.cs
- DefaultAsyncDataDispatcher.cs
- DataControlImageButton.cs
- SimpleMailWebEventProvider.cs
- ColumnClickEvent.cs
- ExceptionRoutedEventArgs.cs
- RowParagraph.cs
- ResourceFallbackManager.cs
- RegexNode.cs
- ModelVisual3D.cs
- NameValueSectionHandler.cs
- LinqDataSource.cs
- TabItem.cs
- BaseCollection.cs
- KnownAssembliesSet.cs
- DropDownButton.cs
- BitStack.cs
- Animatable.cs
- VerticalAlignConverter.cs
- RowSpanVector.cs
- ReliableMessagingVersion.cs
- Stack.cs
- AudioFormatConverter.cs
- ProviderSettingsCollection.cs
- CollectionViewGroupRoot.cs
- Compiler.cs
- Utils.cs
- CodeParameterDeclarationExpressionCollection.cs
- FlowDocumentReader.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- BaseDataList.cs
- GestureRecognitionResult.cs
- Module.cs
- AsyncStreamReader.cs
- WasAdminWrapper.cs
- ProfileSettings.cs
- ExitEventArgs.cs
- DataSetFieldSchema.cs
- PtsContext.cs
- ToolStripManager.cs
- PropertySet.cs
- XmlSchemaNotation.cs
- ActivityIdHeader.cs
- Rule.cs
- NativeMethods.cs
- Composition.cs
- GradientStopCollection.cs
- WaitingCursor.cs
- GraphicsContainer.cs
- ColorConvertedBitmap.cs
- SystemIPGlobalStatistics.cs
- SerializerProvider.cs
- xml.cs
- ClientScriptManagerWrapper.cs
- SQLBytes.cs
- CodeGeneratorAttribute.cs
- ZipIOLocalFileBlock.cs
- InkCanvasFeedbackAdorner.cs
- SlotInfo.cs
- Converter.cs
- XmlSecureResolver.cs
- DataGridViewImageColumn.cs
- MetaForeignKeyColumn.cs
- CircleHotSpot.cs
- IssuanceTokenProviderState.cs
- MD5.cs
- ArgumentDirectionHelper.cs
- GenerateTemporaryTargetAssembly.cs
- DependencyPropertyValueSerializer.cs
- PointConverter.cs
- Dump.cs