Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DrawingServices.cs
- LazyTextWriterCreator.cs
- ComplexType.cs
- WinFormsSecurity.cs
- ResourcePool.cs
- OLEDB_Util.cs
- EventItfInfo.cs
- InputManager.cs
- RecordManager.cs
- PasswordBox.cs
- WebControlAdapter.cs
- LoadedOrUnloadedOperation.cs
- DataServiceExpressionVisitor.cs
- StringArrayConverter.cs
- SymLanguageType.cs
- CryptoApi.cs
- hwndwrapper.cs
- TdsParserHelperClasses.cs
- CreatingCookieEventArgs.cs
- SemaphoreFullException.cs
- DSASignatureFormatter.cs
- HwndProxyElementProvider.cs
- SoundPlayerAction.cs
- CodeComment.cs
- PenThreadWorker.cs
- WebConfigurationFileMap.cs
- DropSource.cs
- FlowDocumentPaginator.cs
- IisTraceListener.cs
- CloudCollection.cs
- CollectionType.cs
- ViewgenGatekeeper.cs
- HostedElements.cs
- BamlCollectionHolder.cs
- AsymmetricAlgorithm.cs
- XmlArrayAttribute.cs
- Package.cs
- XmlSchemaSimpleTypeList.cs
- MaskDesignerDialog.cs
- XmlAttributeAttribute.cs
- DataGridTable.cs
- MediaEntryAttribute.cs
- MergeEnumerator.cs
- MSHTMLHost.cs
- UnitySerializationHolder.cs
- DoubleLink.cs
- ArgumentOutOfRangeException.cs
- FileUtil.cs
- EventlogProvider.cs
- BindingWorker.cs
- OdbcDataReader.cs
- ManipulationVelocities.cs
- IdentityHolder.cs
- SchemaSetCompiler.cs
- Region.cs
- MergeLocalizationDirectives.cs
- FaultException.cs
- EventSinkHelperWriter.cs
- FormCollection.cs
- MetadataCache.cs
- MSG.cs
- ItemContainerPattern.cs
- FocusChangedEventArgs.cs
- AlignmentXValidation.cs
- NativeMethods.cs
- NgenServicingAttributes.cs
- NumberFunctions.cs
- TreeViewDesigner.cs
- MediaContextNotificationWindow.cs
- DbException.cs
- ScrollBar.cs
- ManagedCodeMarkers.cs
- RegistrySecurity.cs
- MgmtConfigurationRecord.cs
- WindowsPrincipal.cs
- CodeMethodMap.cs
- SerialErrors.cs
- InvalidEnumArgumentException.cs
- ButtonRenderer.cs
- ProfilePropertyNameValidator.cs
- PageCodeDomTreeGenerator.cs
- Visitor.cs
- CheckBoxAutomationPeer.cs
- HtmlInputFile.cs
- ObjectDataSourceEventArgs.cs
- TemplateColumn.cs
- UTF7Encoding.cs
- HealthMonitoringSection.cs
- columnmapfactory.cs
- MenuItemBindingCollection.cs
- DbProviderFactory.cs
- NotifyCollectionChangedEventArgs.cs
- NetworkAddressChange.cs
- GeometryGroup.cs
- TypeUsage.cs
- EntityDataSourceDataSelection.cs
- SrgsElementList.cs
- ObjectViewEntityCollectionData.cs
- X509SecurityTokenAuthenticator.cs
- _CommandStream.cs