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
- RenderData.cs
- WebServiceHost.cs
- CultureMapper.cs
- SplitContainerDesigner.cs
- MenuItem.cs
- XLinq.cs
- PropertySet.cs
- DataServiceProcessingPipeline.cs
- PeerName.cs
- PersonalizationEntry.cs
- _LocalDataStore.cs
- UpdateCommand.cs
- NativeCompoundFileAPIs.cs
- ExtendedPropertiesHandler.cs
- StylusPoint.cs
- TransactionBridge.cs
- SystemIPInterfaceProperties.cs
- XmlNamespaceDeclarationsAttribute.cs
- CssClassPropertyAttribute.cs
- ChunkedMemoryStream.cs
- UniqueIdentifierService.cs
- ProfileServiceManager.cs
- CodeFieldReferenceExpression.cs
- ReachFixedPageSerializerAsync.cs
- Bold.cs
- XmlRootAttribute.cs
- PartitionedStream.cs
- DocumentAutomationPeer.cs
- CounterSet.cs
- DecoderReplacementFallback.cs
- Keyboard.cs
- PenThreadWorker.cs
- Rule.cs
- WindowsRegion.cs
- StreamedWorkflowDefinitionContext.cs
- AssemblyResourceLoader.cs
- ConfigXmlWhitespace.cs
- DrawListViewSubItemEventArgs.cs
- MobileControl.cs
- XmlTextReaderImpl.cs
- TimeoutHelper.cs
- DesignerLoader.cs
- EditorPartChrome.cs
- FixedTextPointer.cs
- DataShape.cs
- GZipDecoder.cs
- TypeConstant.cs
- DPAPIProtectedConfigurationProvider.cs
- LinkLabel.cs
- FixedBufferAttribute.cs
- MbpInfo.cs
- IQueryable.cs
- remotingproxy.cs
- SQLStringStorage.cs
- FontWeight.cs
- ScriptManager.cs
- Splitter.cs
- DataGridViewCellValidatingEventArgs.cs
- AssemblySettingAttributes.cs
- SplineQuaternionKeyFrame.cs
- StringInfo.cs
- DiscoveryEndpointElement.cs
- ServiceThrottlingBehavior.cs
- SafeThreadHandle.cs
- CurrentChangingEventArgs.cs
- DesignerDataConnection.cs
- AssemblySettingAttributes.cs
- ValidationEventArgs.cs
- ActivityExecutionWorkItem.cs
- DrawingServices.cs
- Parameter.cs
- InputLanguageManager.cs
- ExclusiveHandle.cs
- ChameleonKey.cs
- NullToBooleanConverter.cs
- WebContext.cs
- XamlGridLengthSerializer.cs
- DocumentEventArgs.cs
- UdpConstants.cs
- SQLConvert.cs
- CustomAttributeSerializer.cs
- TextRangeEditLists.cs
- CategoryNameCollection.cs
- ValueType.cs
- ReleaseInstanceMode.cs
- EnumerableValidator.cs
- ObservableCollection.cs
- NullableBoolConverter.cs
- DocumentOrderComparer.cs
- SiteMembershipCondition.cs
- BasicHttpSecurity.cs
- CopyNodeSetAction.cs
- XmlUtil.cs
- InvalidAsynchronousStateException.cs
- SecurityTokenTypes.cs
- DataSourceCacheDurationConverter.cs
- ValidatedControlConverter.cs
- PieceDirectory.cs
- ListBoxItemAutomationPeer.cs
- WorkerRequest.cs