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
- TabletDevice.cs
- WebEncodingValidator.cs
- BindingGroup.cs
- InkCanvas.cs
- ComponentResourceKeyConverter.cs
- SessionStateSection.cs
- CustomErrorCollection.cs
- Or.cs
- OptionUsage.cs
- ObjectPropertyMapping.cs
- WorkflowServiceBehavior.cs
- CompilerGeneratedAttribute.cs
- OracleConnectionFactory.cs
- XmlAggregates.cs
- SecurityTokenTypes.cs
- SmtpFailedRecipientException.cs
- TraceUtils.cs
- ControlCachePolicy.cs
- GeneralTransformGroup.cs
- NativeMethods.cs
- WebZoneDesigner.cs
- DbConnectionHelper.cs
- filewebrequest.cs
- CodeAttachEventStatement.cs
- FastPropertyAccessor.cs
- AdRotator.cs
- safelinkcollection.cs
- Transactions.cs
- BulletedList.cs
- XmlSchemaAnnotated.cs
- DeviceContext2.cs
- Unit.cs
- ResourceSet.cs
- XmlException.cs
- XmlEntity.cs
- OdbcHandle.cs
- BStrWrapper.cs
- ProcessProtocolHandler.cs
- DesignSurface.cs
- EnlistmentState.cs
- InstanceCompleteException.cs
- ProfilePropertyNameValidator.cs
- EncryptedPackage.cs
- Border.cs
- PathTooLongException.cs
- EventMappingSettings.cs
- ByteStream.cs
- AppDomainResourcePerfCounters.cs
- StandardTransformFactory.cs
- ViewCellRelation.cs
- Types.cs
- TypeUtils.cs
- InvariantComparer.cs
- StylusPointPropertyInfoDefaults.cs
- FilteredReadOnlyMetadataCollection.cs
- Image.cs
- CodeDomSerializer.cs
- WebRequestModuleElementCollection.cs
- PatternMatcher.cs
- SrgsGrammar.cs
- RowsCopiedEventArgs.cs
- GlobalizationSection.cs
- SortedList.cs
- RadioButton.cs
- WorkItem.cs
- DebuggerAttributes.cs
- TextAutomationPeer.cs
- XhtmlBasicValidationSummaryAdapter.cs
- TiffBitmapDecoder.cs
- DataGridViewColumnConverter.cs
- ContextStack.cs
- Converter.cs
- DataView.cs
- BitmapImage.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- XmlSchemaSubstitutionGroup.cs
- SatelliteContractVersionAttribute.cs
- DataGridParentRows.cs
- TraceLevelStore.cs
- Message.cs
- HttpFileCollectionBase.cs
- RelatedPropertyManager.cs
- Style.cs
- HitTestWithGeometryDrawingContextWalker.cs
- SystemColorTracker.cs
- UpdatePanel.cs
- PagedControl.cs
- BindingExpressionBase.cs
- CTreeGenerator.cs
- DocumentPageHost.cs
- ServerValidateEventArgs.cs
- File.cs
- StandardBindingElement.cs
- ColumnMapTranslator.cs
- _Connection.cs
- UriScheme.cs
- AQNBuilder.cs
- KeyValueSerializer.cs
- WSSecurityPolicy12.cs
- fixedPageContentExtractor.cs