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
- columnmapfactory.cs
- XamlPoint3DCollectionSerializer.cs
- ClientScriptManagerWrapper.cs
- MaskedTextBox.cs
- PropertyItemInternal.cs
- ProcessModuleCollection.cs
- ToolStripContainer.cs
- ADMembershipUser.cs
- ChangesetResponse.cs
- CodePrimitiveExpression.cs
- CompilationRelaxations.cs
- EncryptedKey.cs
- XmlILModule.cs
- SmiTypedGetterSetter.cs
- BrowsableAttribute.cs
- CryptoConfig.cs
- CfgParser.cs
- PropertyGridCommands.cs
- ResourceReferenceExpressionConverter.cs
- Point3DCollection.cs
- CompositeDispatchFormatter.cs
- ApplicationHost.cs
- WorkflowTransactionOptions.cs
- DbConnectionPoolGroup.cs
- HwndHost.cs
- XmlSchemaCollection.cs
- hebrewshape.cs
- ThemeDirectoryCompiler.cs
- PersonalizationEntry.cs
- streamingZipPartStream.cs
- GlyphCache.cs
- SchemaConstraints.cs
- CopyCodeAction.cs
- HandoffBehavior.cs
- KerberosSecurityTokenParameters.cs
- ThreadPool.cs
- ValidationRule.cs
- IQueryable.cs
- DefaultProxySection.cs
- PeerPresenceInfo.cs
- PropertyDescriptorCollection.cs
- URLMembershipCondition.cs
- CodePropertyReferenceExpression.cs
- FormViewDesigner.cs
- XmlSchemaRedefine.cs
- XmlBindingWorker.cs
- WaveHeader.cs
- DocumentViewerBase.cs
- CodeIterationStatement.cs
- MissingFieldException.cs
- XPathArrayIterator.cs
- basenumberconverter.cs
- AttributeEmitter.cs
- NegatedCellConstant.cs
- DispatcherTimer.cs
- SharedConnectionInfo.cs
- EntityContainer.cs
- Stack.cs
- Buffer.cs
- XmlSchemas.cs
- CompilationUnit.cs
- PixelFormats.cs
- GeometryDrawing.cs
- RemotingConfigParser.cs
- WorkflowEventArgs.cs
- Point3DConverter.cs
- AutoGeneratedField.cs
- CacheOutputQuery.cs
- WpfKnownTypeInvoker.cs
- ObsoleteAttribute.cs
- MediaTimeline.cs
- SoapProtocolReflector.cs
- DeflateStream.cs
- AppDomainAttributes.cs
- RequestCacheValidator.cs
- XdrBuilder.cs
- NominalTypeEliminator.cs
- AdapterUtil.cs
- WebPartDescription.cs
- DataGridClipboardCellContent.cs
- SizeChangedEventArgs.cs
- DateTimeValueSerializerContext.cs
- RefreshEventArgs.cs
- BaseTemplateBuildProvider.cs
- Polygon.cs
- XmlSchemaSimpleContentExtension.cs
- loginstatus.cs
- Atom10FormatterFactory.cs
- MultiPropertyDescriptorGridEntry.cs
- XmlRawWriter.cs
- XmlNamedNodeMap.cs
- _BasicClient.cs
- ExtentCqlBlock.cs
- RecordConverter.cs
- HwndSourceKeyboardInputSite.cs
- ByteStreamGeometryContext.cs
- ActivityCodeGenerator.cs
- CollectionDataContract.cs
- LineBreak.cs
- RuntimeConfigurationRecord.cs