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
- RectAnimationUsingKeyFrames.cs
- SettingsAttributeDictionary.cs
- AttachedProperty.cs
- WebReferencesBuildProvider.cs
- DynamicDataRoute.cs
- Parser.cs
- CounterCreationDataConverter.cs
- printdlgexmarshaler.cs
- StagingAreaInputItem.cs
- SimpleHandlerBuildProvider.cs
- ADMembershipProvider.cs
- UniqueIdentifierService.cs
- FileRecordSequenceHelper.cs
- SafeThemeHandle.cs
- xmlglyphRunInfo.cs
- TableSectionStyle.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- OdbcConnection.cs
- QilLiteral.cs
- ImportCatalogPart.cs
- HtmlButton.cs
- DataTablePropertyDescriptor.cs
- SortFieldComparer.cs
- WmlPageAdapter.cs
- ServiceModelConfiguration.cs
- XmlDataLoader.cs
- EntityProviderFactory.cs
- SignatureToken.cs
- PopOutPanel.cs
- OneOfConst.cs
- PerformanceCounterManager.cs
- ReferencedAssembly.cs
- DataViewSetting.cs
- EmbeddedMailObjectsCollection.cs
- PasswordRecoveryDesigner.cs
- DataGridViewColumn.cs
- DataGridViewDesigner.cs
- RectIndependentAnimationStorage.cs
- PeerContact.cs
- ImageResources.Designer.cs
- DataColumnPropertyDescriptor.cs
- Stack.cs
- PersistenceTypeAttribute.cs
- ByteAnimationBase.cs
- safelink.cs
- TiffBitmapDecoder.cs
- Wizard.cs
- RawContentTypeMapper.cs
- OpenTypeCommon.cs
- SizeConverter.cs
- ActivityFunc.cs
- BooleanExpr.cs
- CompilationSection.cs
- StickyNoteAnnotations.cs
- MediaElementAutomationPeer.cs
- ThreadPoolTaskScheduler.cs
- TextEffect.cs
- SmtpSection.cs
- DataSourceXmlSerializationAttribute.cs
- RenamedEventArgs.cs
- XmlSchemaComplexContent.cs
- CalendarDateRange.cs
- ViewGenResults.cs
- FileSystemWatcher.cs
- _TimerThread.cs
- CapiSafeHandles.cs
- WinFormsComponentEditor.cs
- ChangeProcessor.cs
- OleDbStruct.cs
- TaiwanCalendar.cs
- WebMessageFormatHelper.cs
- ContainerSelectorBehavior.cs
- SiteIdentityPermission.cs
- AppSettingsReader.cs
- DateTimeFormatInfo.cs
- GeneratedContractType.cs
- Pen.cs
- HeaderedItemsControl.cs
- HttpHandler.cs
- XPathNodeInfoAtom.cs
- KnownTypesProvider.cs
- IdentifierService.cs
- DateTimeConverter.cs
- MediaContext.cs
- StringValueConverter.cs
- Encoder.cs
- DataKeyPropertyAttribute.cs
- Animatable.cs
- SmtpNetworkElement.cs
- StylusPointDescription.cs
- CodeStatementCollection.cs
- ScrollBarRenderer.cs
- HostProtectionException.cs
- InteropDesigner.xaml.cs
- MultiSelectRootGridEntry.cs
- SymmetricAlgorithm.cs
- EntityWrapperFactory.cs
- MessageQueueAccessControlEntry.cs
- PagedDataSource.cs
- DataKeyCollection.cs