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
- ServiceBehaviorElement.cs
- MarginCollapsingState.cs
- PictureBoxDesigner.cs
- DrawingBrush.cs
- Vector3DAnimation.cs
- MessageDecoder.cs
- WorkflowNamespace.cs
- altserialization.cs
- BooleanFunctions.cs
- CollectionBuilder.cs
- AssemblyName.cs
- NativeMethods.cs
- EditBehavior.cs
- HotSpotCollectionEditor.cs
- VirtualizingPanel.cs
- WebSysDescriptionAttribute.cs
- DialogResultConverter.cs
- ContentElementCollection.cs
- Paragraph.cs
- MutexSecurity.cs
- InkCanvasSelection.cs
- TextElementEditingBehaviorAttribute.cs
- Inflater.cs
- XmlTypeMapping.cs
- KnownBoxes.cs
- SHA512.cs
- RelationshipSet.cs
- RegistryDataKey.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DesignerObjectListAdapter.cs
- StrokeIntersection.cs
- SystemWebCachingSectionGroup.cs
- WindowsListViewGroup.cs
- CompositeDataBoundControl.cs
- BaseCollection.cs
- SelectionRange.cs
- SymbolMethod.cs
- HttpException.cs
- PublishLicense.cs
- TagMapCollection.cs
- EventHandlerList.cs
- HandlerWithFactory.cs
- ServiceChannelManager.cs
- FontNamesConverter.cs
- TypeConverterHelper.cs
- AffineTransform3D.cs
- XmlDataDocument.cs
- Vector3DKeyFrameCollection.cs
- BinaryKeyIdentifierClause.cs
- CallSiteHelpers.cs
- ElapsedEventArgs.cs
- Decoder.cs
- SerializationStore.cs
- ParseElement.cs
- CreateUserWizard.cs
- IgnoreFlushAndCloseStream.cs
- CrossAppDomainChannel.cs
- SqlGatherConsumedAliases.cs
- ButtonFieldBase.cs
- BinaryExpression.cs
- XmlnsPrefixAttribute.cs
- ObjectReaderCompiler.cs
- DocumentPageView.cs
- ZipFileInfoCollection.cs
- InputManager.cs
- CachedFontFace.cs
- CapabilitiesPattern.cs
- CodeGenerationManager.cs
- NamedPipeHostedTransportConfiguration.cs
- NetCodeGroup.cs
- HostProtectionPermission.cs
- TimeStampChecker.cs
- TransportConfigurationTypeElement.cs
- VisualBasicImportReference.cs
- CookieProtection.cs
- Authorization.cs
- CurrentChangedEventManager.cs
- XmlILOptimizerVisitor.cs
- DetailsViewInsertedEventArgs.cs
- APCustomTypeDescriptor.cs
- FileDialogCustomPlace.cs
- ModelItemKeyValuePair.cs
- WizardStepBase.cs
- ListView.cs
- FrameworkElementFactory.cs
- SqlConnectionString.cs
- ContextMenu.cs
- XmlEncodedRawTextWriter.cs
- ZoneButton.cs
- StrongNameIdentityPermission.cs
- EntityDataSourceSelectingEventArgs.cs
- PasswordPropertyTextAttribute.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- LookupNode.cs
- Rect.cs
- Matrix3DValueSerializer.cs
- ErrorWebPart.cs
- MetadataArtifactLoaderResource.cs
- StylusButtonEventArgs.cs
- StdRegProviderWrapper.cs