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
- KeyTimeConverter.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ActivityPreviewDesigner.cs
- ETagAttribute.cs
- TableHeaderCell.cs
- MobileListItem.cs
- DataGridViewCellEventArgs.cs
- GeometryDrawing.cs
- ArraySortHelper.cs
- codemethodreferenceexpression.cs
- ApplicationFileParser.cs
- FactoryGenerator.cs
- UnmanagedMemoryAccessor.cs
- GCHandleCookieTable.cs
- CodeTypeOfExpression.cs
- SecurityManager.cs
- CollectionViewGroupInternal.cs
- ToolBarPanel.cs
- MailHeaderInfo.cs
- HttpApplicationFactory.cs
- BooleanFunctions.cs
- Compiler.cs
- SimplePropertyEntry.cs
- MouseActionValueSerializer.cs
- WeakRefEnumerator.cs
- MeshGeometry3D.cs
- MethodRental.cs
- ServiceMetadataExtension.cs
- VisualTreeHelper.cs
- VectorCollectionConverter.cs
- XmlToDatasetMap.cs
- QueryCursorEventArgs.cs
- StreamWithDictionary.cs
- Activity.cs
- AdapterDictionary.cs
- OracleLob.cs
- EdmItemCollection.cs
- CircleHotSpot.cs
- ProcessInputEventArgs.cs
- RoutedPropertyChangedEventArgs.cs
- TextBoxView.cs
- FlowDocumentFormatter.cs
- IgnorePropertiesAttribute.cs
- DPCustomTypeDescriptor.cs
- ReflectEventDescriptor.cs
- RoleGroup.cs
- CompilerGeneratedAttribute.cs
- DecimalFormatter.cs
- PluralizationService.cs
- SimpleType.cs
- SmiSettersStream.cs
- SqlDataSourceCommandEventArgs.cs
- EditorZoneDesigner.cs
- RuleInfoComparer.cs
- PropertyEntry.cs
- DataGridCellsPresenter.cs
- TextBox.cs
- CompoundFileIOPermission.cs
- WorkingDirectoryEditor.cs
- PerformanceCounterPermission.cs
- HashLookup.cs
- EpmContentSerializer.cs
- StateManagedCollection.cs
- FragmentQueryProcessor.cs
- RoutedEvent.cs
- wgx_exports.cs
- _ConnectOverlappedAsyncResult.cs
- ServiceManagerHandle.cs
- FocusTracker.cs
- HybridWebProxyFinder.cs
- Stackframe.cs
- DataGridAddNewRow.cs
- NetNamedPipeBindingElement.cs
- PropertyReferenceSerializer.cs
- LicenseException.cs
- SmiMetaDataProperty.cs
- RawKeyboardInputReport.cs
- VariableQuery.cs
- ConditionalAttribute.cs
- LayoutEvent.cs
- NumericPagerField.cs
- Path.cs
- SimpleMailWebEventProvider.cs
- BuildResult.cs
- OleDbError.cs
- ProtectedConfigurationProviderCollection.cs
- Lock.cs
- TextBox.cs
- WebControl.cs
- CornerRadius.cs
- MessageDesigner.cs
- CodeEntryPointMethod.cs
- FunctionNode.cs
- BlurBitmapEffect.cs
- QueuePathEditor.cs
- ProfileGroupSettings.cs
- CryptoKeySecurity.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- EasingQuaternionKeyFrame.cs
- EntityContainerAssociationSetEnd.cs