Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- OpCodes.cs
- Site.cs
- XmlArrayAttribute.cs
- NullRuntimeConfig.cs
- _PooledStream.cs
- ColorAnimation.cs
- ListCollectionView.cs
- ColorConvertedBitmap.cs
- SiteMapNodeItem.cs
- SevenBitStream.cs
- KeyTimeConverter.cs
- WebBrowserPermission.cs
- EntityFunctions.cs
- FlowSwitchDesigner.xaml.cs
- EntityDataSourceValidationException.cs
- RowTypeElement.cs
- MD5.cs
- TypeUtil.cs
- EmptyImpersonationContext.cs
- Pens.cs
- WindowsTab.cs
- _HelperAsyncResults.cs
- WebFormDesignerActionService.cs
- DbBuffer.cs
- XmlSchemaGroup.cs
- Ref.cs
- RequiredAttributeAttribute.cs
- DesigntimeLicenseContext.cs
- TypeInfo.cs
- XmlFileEditor.cs
- FullTrustAssemblyCollection.cs
- RunWorkerCompletedEventArgs.cs
- BuildProviderCollection.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- WebReferenceCollection.cs
- ArithmeticException.cs
- DirectionalLight.cs
- FlowDocumentView.cs
- webproxy.cs
- DockProviderWrapper.cs
- FormsAuthenticationModule.cs
- XmlLanguageConverter.cs
- SspiHelper.cs
- CompensateDesigner.cs
- XPathNavigator.cs
- Axis.cs
- ResourcePermissionBaseEntry.cs
- SqlConnectionHelper.cs
- ProfileService.cs
- DefaultValueTypeConverter.cs
- TemplateKeyConverter.cs
- xmlfixedPageInfo.cs
- TableRowCollection.cs
- CultureInfoConverter.cs
- DateTimeHelper.cs
- MenuCommand.cs
- XmlSchemaException.cs
- DrawingImage.cs
- MetadataCache.cs
- _SSPISessionCache.cs
- SqlDependency.cs
- BinaryObjectWriter.cs
- ContentElement.cs
- GridViewUpdatedEventArgs.cs
- DataGridColumnsPage.cs
- EntityModelSchemaGenerator.cs
- DataServiceHostWrapper.cs
- Win32.cs
- ColumnMapTranslator.cs
- CacheSection.cs
- TextDecorationCollection.cs
- DES.cs
- ItemsPanelTemplate.cs
- Empty.cs
- EntityDescriptor.cs
- ValueType.cs
- TrackBarDesigner.cs
- DataBindingExpressionBuilder.cs
- OnOperation.cs
- PointHitTestResult.cs
- MessageHeaderException.cs
- CustomErrorCollection.cs
- XmlAnyElementAttribute.cs
- PixelFormat.cs
- SamlSubject.cs
- DnsPermission.cs
- CopyNodeSetAction.cs
- SQLGuid.cs
- PKCS1MaskGenerationMethod.cs
- ConstrainedDataObject.cs
- DBSchemaRow.cs
- EntityContainerAssociationSetEnd.cs
- Exceptions.cs
- QuaternionRotation3D.cs
- HttpRuntimeSection.cs
- CachedBitmap.cs
- SignatureDescription.cs
- RangeContentEnumerator.cs
- MetadataUtilsSmi.cs
- WorkflowViewManager.cs