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
- XmlSignatureManifest.cs
- KeyValuePair.cs
- ModelUIElement3D.cs
- QueryCacheManager.cs
- CustomActivityDesigner.cs
- UserControlParser.cs
- CommonDialog.cs
- HttpContextWrapper.cs
- AnnotationResourceCollection.cs
- InlineCollection.cs
- XmlDataDocument.cs
- HttpAsyncResult.cs
- CardSpaceShim.cs
- ReaderWriterLock.cs
- UserValidatedEventArgs.cs
- ReadOnlyAttribute.cs
- ContentWrapperAttribute.cs
- BatchWriter.cs
- SqlCacheDependencySection.cs
- DocumentSequenceHighlightLayer.cs
- elementinformation.cs
- BaseDataListPage.cs
- ListViewCommandEventArgs.cs
- PageContentCollection.cs
- ObjectPropertyMapping.cs
- SchemaInfo.cs
- ForwardPositionQuery.cs
- CodeTypeReference.cs
- CmsUtils.cs
- FreezableDefaultValueFactory.cs
- RangeValuePattern.cs
- TextCollapsingProperties.cs
- ObjectDataSourceStatusEventArgs.cs
- SqlLiftIndependentRowExpressions.cs
- TransformProviderWrapper.cs
- StringReader.cs
- PkcsMisc.cs
- RenderData.cs
- DefaultTraceListener.cs
- SqlRowUpdatedEvent.cs
- Pool.cs
- Condition.cs
- OleAutBinder.cs
- CorePropertiesFilter.cs
- SendMailErrorEventArgs.cs
- ExtenderHelpers.cs
- EmptyArray.cs
- PartialTrustVisibleAssemblyCollection.cs
- BitmapMetadata.cs
- HttpValueCollection.cs
- TokenizerHelper.cs
- WindowsToolbarItemAsMenuItem.cs
- CodeMethodInvokeExpression.cs
- SiteMapNodeItemEventArgs.cs
- XmlSchemaSequence.cs
- MarkupExtensionParser.cs
- CaseCqlBlock.cs
- ToolStripLocationCancelEventArgs.cs
- WebPartZone.cs
- WpfPayload.cs
- VolatileEnlistmentState.cs
- ObjectContext.cs
- PolicyException.cs
- DynamicRouteExpression.cs
- SuppressIldasmAttribute.cs
- SafeCertificateStore.cs
- SQLInt32Storage.cs
- SystemFonts.cs
- PaginationProgressEventArgs.cs
- Vector3DCollection.cs
- CallbackValidator.cs
- MatrixTransform.cs
- HtmlContainerControl.cs
- HttpDebugHandler.cs
- ProtocolsSection.cs
- TypedReference.cs
- ToolStripLocationCancelEventArgs.cs
- FactoryMaker.cs
- SecurityKeyIdentifier.cs
- EntryIndex.cs
- HTTPNotFoundHandler.cs
- Mouse.cs
- SiteOfOriginPart.cs
- NamedPermissionSet.cs
- ActivityCodeDomReferenceService.cs
- WebPartUserCapability.cs
- TypeDescriptorFilterService.cs
- FileEnumerator.cs
- Rect3DValueSerializer.cs
- GroupedContextMenuStrip.cs
- IsolationInterop.cs
- XmlSignatureProperties.cs
- QilPatternFactory.cs
- CalendarTable.cs
- DesignerValidatorAdapter.cs
- DataGridViewRow.cs
- ProfileSettings.cs
- CacheEntry.cs
- xdrvalidator.cs
- TcpProcessProtocolHandler.cs