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
- ConditionChanges.cs
- SecondaryIndex.cs
- RolePrincipal.cs
- SmiXetterAccessMap.cs
- HwndTarget.cs
- DbExpressionRules.cs
- PointHitTestParameters.cs
- DateTimeFormat.cs
- TextAutomationPeer.cs
- ObjectStateManager.cs
- DSACryptoServiceProvider.cs
- FileAuthorizationModule.cs
- SemanticResolver.cs
- OracleRowUpdatingEventArgs.cs
- WebPartConnectionsCloseVerb.cs
- SchemaInfo.cs
- DbConvert.cs
- Tablet.cs
- QuaternionAnimationBase.cs
- XmlILModule.cs
- ColumnMapTranslator.cs
- FontFamily.cs
- RectAnimationClockResource.cs
- HttpHostedTransportConfiguration.cs
- IsolatedStorageFile.cs
- GatewayDefinition.cs
- JoinElimination.cs
- ActivationArguments.cs
- XmlAnyElementAttributes.cs
- TreeViewEvent.cs
- TextTreeObjectNode.cs
- XmlStreamedByteStreamReader.cs
- ListViewAutomationPeer.cs
- AttachInfo.cs
- NullableIntSumAggregationOperator.cs
- QualificationDataAttribute.cs
- OverrideMode.cs
- ADRole.cs
- InvalidOleVariantTypeException.cs
- EventProvider.cs
- LinkConverter.cs
- AsnEncodedData.cs
- MimeMapping.cs
- NavigationEventArgs.cs
- BaseCodeDomTreeGenerator.cs
- Request.cs
- TransactionTraceIdentifier.cs
- ToolStripContentPanel.cs
- SequentialUshortCollection.cs
- HttpStreamXmlDictionaryWriter.cs
- IteratorFilter.cs
- TypedColumnHandler.cs
- SiteOfOriginPart.cs
- SequenceQuery.cs
- IntegerValidator.cs
- SoapCodeExporter.cs
- InertiaTranslationBehavior.cs
- FontFamily.cs
- QilExpression.cs
- ContainerParaClient.cs
- HtmlAnchor.cs
- ExpressionConverter.cs
- Adorner.cs
- MethodBuilder.cs
- XmlEncoding.cs
- AsymmetricSignatureDeformatter.cs
- EmissiveMaterial.cs
- VirtualPathUtility.cs
- UnionCqlBlock.cs
- WebBrowserSiteBase.cs
- Vertex.cs
- coordinator.cs
- FieldCollectionEditor.cs
- TreeNodeCollectionEditor.cs
- XmlSchemaGroup.cs
- SplashScreen.cs
- HyperLink.cs
- Metadata.cs
- LocatorPartList.cs
- ProxyHwnd.cs
- ScrollPatternIdentifiers.cs
- ImageListImageEditor.cs
- AccessText.cs
- Compiler.cs
- FormViewUpdateEventArgs.cs
- HttpVersion.cs
- InternalControlCollection.cs
- TypeConverter.cs
- CryptoConfig.cs
- Int32EqualityComparer.cs
- uribuilder.cs
- LogExtent.cs
- Model3D.cs
- DbProviderServices.cs
- SID.cs
- ListBase.cs
- HandleCollector.cs
- Path.cs
- FrameSecurityDescriptor.cs
- XmlSerializableReader.cs