Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DbConvert.cs
- ProviderConnectionPointCollection.cs
- DesignerDataParameter.cs
- TabItemWrapperAutomationPeer.cs
- FieldToken.cs
- DataService.cs
- OdbcFactory.cs
- TcpActivation.cs
- ThreadWorkerController.cs
- HtmlInputText.cs
- WorkflowStateRollbackService.cs
- GridView.cs
- GetWorkflowTree.cs
- DaylightTime.cs
- baseaxisquery.cs
- Graphics.cs
- QueryCacheKey.cs
- XmlArrayItemAttribute.cs
- TextEmbeddedObject.cs
- RuleSettingsCollection.cs
- LogicalExpr.cs
- XmlChildNodes.cs
- LocalClientSecuritySettings.cs
- TextServicesDisplayAttributePropertyRanges.cs
- _LoggingObject.cs
- InfoCardMetadataExchangeClient.cs
- PageParserFilter.cs
- GridViewPageEventArgs.cs
- XmlNode.cs
- BinaryObjectReader.cs
- KeyBinding.cs
- SizeFConverter.cs
- altserialization.cs
- EncryptedPackageFilter.cs
- BinaryFormatterWriter.cs
- GCHandleCookieTable.cs
- GPRECTF.cs
- CAGDesigner.cs
- SmiContext.cs
- XPathExpr.cs
- OciLobLocator.cs
- CSharpCodeProvider.cs
- TokenFactoryBase.cs
- CounterCreationData.cs
- IdentityModelDictionary.cs
- QilXmlReader.cs
- MailHeaderInfo.cs
- WebServiceData.cs
- wmiprovider.cs
- UxThemeWrapper.cs
- DetailsViewModeEventArgs.cs
- ConfigurationFileMap.cs
- DataServiceQueryException.cs
- Transform3DGroup.cs
- XXXOnTypeBuilderInstantiation.cs
- EntityReference.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SchemaInfo.cs
- ZipPackagePart.cs
- PersonalizationStateQuery.cs
- DataObjectAttribute.cs
- ValuePattern.cs
- OutputWindow.cs
- PlainXmlDeserializer.cs
- CompilerWrapper.cs
- NumberSubstitution.cs
- smtppermission.cs
- ModelTreeEnumerator.cs
- HtmlInputImage.cs
- SafeProcessHandle.cs
- ValueExpressions.cs
- XmlDictionaryReaderQuotas.cs
- AutomationPatternInfo.cs
- NativeCompoundFileAPIs.cs
- ToolTipAutomationPeer.cs
- TextParaLineResult.cs
- DataGridViewElement.cs
- NamespaceDisplay.xaml.cs
- QueryAsyncResult.cs
- ZipIORawDataFileBlock.cs
- RectValueSerializer.cs
- MetadataArtifactLoaderCompositeResource.cs
- UIElement3D.cs
- WebControlToolBoxItem.cs
- CalendarDay.cs
- MarkupObject.cs
- InheritanceAttribute.cs
- XmlIgnoreAttribute.cs
- RenderDataDrawingContext.cs
- DataGridAddNewRow.cs
- AutomationPropertyInfo.cs
- DictionaryBase.cs
- InfiniteIntConverter.cs
- MD5.cs
- ListViewAutomationPeer.cs
- XmlDsigSep2000.cs
- HtmlDocument.cs
- GridViewCellAutomationPeer.cs
- EntityKey.cs
- HatchBrush.cs