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
- BaseWebProxyFinder.cs
- RelationshipEndCollection.cs
- InvalidCommandTreeException.cs
- VBIdentifierName.cs
- PermissionListSet.cs
- SiteMapNode.cs
- KoreanCalendar.cs
- UpdateRecord.cs
- RecordManager.cs
- CellParagraph.cs
- HttpContextServiceHost.cs
- RoleServiceManager.cs
- DispatcherEventArgs.cs
- ToolboxService.cs
- TableRow.cs
- PropertyMapper.cs
- XmlSerializerNamespaces.cs
- HTMLTextWriter.cs
- StrokeCollectionDefaultValueFactory.cs
- XmlTextReader.cs
- EventTrigger.cs
- ReachVisualSerializer.cs
- ZipIOExtraField.cs
- XamlToRtfParser.cs
- MULTI_QI.cs
- SqlTypesSchemaImporter.cs
- DataGridColumn.cs
- dbenumerator.cs
- Shape.cs
- XmlSchemaType.cs
- IntAverageAggregationOperator.cs
- SqlDataSourceEnumerator.cs
- TypeContext.cs
- TransactionOptions.cs
- RightsManagementPermission.cs
- RuntimeConfigurationRecord.cs
- Content.cs
- PropertyFilter.cs
- BufferedResponseStream.cs
- CodeTypeDeclarationCollection.cs
- SpecialNameAttribute.cs
- TypeResolvingOptionsAttribute.cs
- Error.cs
- IgnoreDeviceFilterElement.cs
- WebSysDisplayNameAttribute.cs
- DiscoveryMessageSequenceCD1.cs
- CqlLexer.cs
- RegistryDataKey.cs
- UnsafeNativeMethodsMilCoreApi.cs
- SqlException.cs
- WinCategoryAttribute.cs
- UserControlDesigner.cs
- PathFigureCollectionValueSerializer.cs
- StatusBarDrawItemEvent.cs
- DefaultPrintController.cs
- CodeSubDirectory.cs
- EdgeModeValidation.cs
- Stylesheet.cs
- ReadonlyMessageFilter.cs
- InputLanguageSource.cs
- RSAPKCS1SignatureDeformatter.cs
- XmlResolver.cs
- TimeoutConverter.cs
- DbConnectionPoolCounters.cs
- SecurityTokenException.cs
- ToolboxComponentsCreatingEventArgs.cs
- ServicesUtilities.cs
- SettingsAttributeDictionary.cs
- RegisteredDisposeScript.cs
- Rotation3D.cs
- FormatSettings.cs
- PermissionSetTriple.cs
- HGlobalSafeHandle.cs
- OleDbErrorCollection.cs
- IconEditor.cs
- SqlDeflator.cs
- XmlEnumAttribute.cs
- Configuration.cs
- ProgressPage.cs
- CorrelationManager.cs
- CacheChildrenQuery.cs
- XpsStructure.cs
- BitmapInitialize.cs
- DataGridViewCell.cs
- KerberosSecurityTokenProvider.cs
- ErrorWrapper.cs
- MessageBox.cs
- MouseButtonEventArgs.cs
- SchemaCollectionCompiler.cs
- DataServiceEntityAttribute.cs
- ProxyManager.cs
- XmlProcessingInstruction.cs
- StrokeNodeOperations.cs
- TriState.cs
- DBParameter.cs
- DbReferenceCollection.cs
- TreeView.cs
- SafeNativeMethods.cs
- MobileRedirect.cs
- SelectionRangeConverter.cs