Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Resources / StreamResourceInfo.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripTextBox.cs
- StorageScalarPropertyMapping.cs
- Win32KeyboardDevice.cs
- BaseHashHelper.cs
- CanonicalFontFamilyReference.cs
- SettingsProviderCollection.cs
- HwndTarget.cs
- ScriptRef.cs
- GroupBoxRenderer.cs
- AppDomainCompilerProxy.cs
- MarkupExtensionParser.cs
- HtmlInputButton.cs
- FlowLayout.cs
- GeneralTransform.cs
- __Filters.cs
- XmlDataProvider.cs
- MeasurementDCInfo.cs
- SafeProcessHandle.cs
- ISAPIApplicationHost.cs
- ProcessHostConfigUtils.cs
- XsltQilFactory.cs
- PlainXmlWriter.cs
- TrackingSection.cs
- Bidi.cs
- WebReferencesBuildProvider.cs
- EventLogInformation.cs
- Message.cs
- TextContainerChangeEventArgs.cs
- BooleanExpr.cs
- HttpStreamMessageEncoderFactory.cs
- StringFormat.cs
- SiteMapNodeItem.cs
- ColumnCollection.cs
- FormsAuthentication.cs
- ChannelPool.cs
- MenuItemStyleCollection.cs
- IsolatedStorageFile.cs
- GeometryModel3D.cs
- CommandValueSerializer.cs
- StyleSheetDesigner.cs
- EdmSchemaAttribute.cs
- PageStatePersister.cs
- WebEventTraceProvider.cs
- TextParentUndoUnit.cs
- XmlILStorageConverter.cs
- SslStream.cs
- CommunicationObjectManager.cs
- Hash.cs
- serverconfig.cs
- Region.cs
- DataGridViewSelectedColumnCollection.cs
- OleDbConnection.cs
- ReceiveActivity.cs
- DocumentAutomationPeer.cs
- CodeExpressionStatement.cs
- ExpressionEditorAttribute.cs
- RegexMatchCollection.cs
- SecurityTokenValidationException.cs
- CommentAction.cs
- RuleSettings.cs
- ListMarkerSourceInfo.cs
- ChunkedMemoryStream.cs
- AnnotationService.cs
- ObservableCollection.cs
- Baml2006ReaderSettings.cs
- Claim.cs
- QueryCacheManager.cs
- ToolStripScrollButton.cs
- VectorValueSerializer.cs
- GACMembershipCondition.cs
- ExpressionCopier.cs
- CodeCastExpression.cs
- ArgumentValue.cs
- InstalledVoice.cs
- DataGridItemCollection.cs
- ClientTarget.cs
- BooleanAnimationBase.cs
- GlyphCache.cs
- Win32PrintDialog.cs
- IfAction.cs
- ContravarianceAdapter.cs
- ToolboxItemCollection.cs
- PlatformNotSupportedException.cs
- ProfileManager.cs
- PropertyTabAttribute.cs
- AttachedAnnotationChangedEventArgs.cs
- XmlSchemaValidationException.cs
- IisTraceWebEventProvider.cs
- DataGridViewRowStateChangedEventArgs.cs
- SubpageParagraph.cs
- CodeAttributeDeclarationCollection.cs
- WindowsListView.cs
- XamlValidatingReader.cs
- Token.cs
- TypeForwardedToAttribute.cs
- WsatExtendedInformation.cs
- EmptyEnumerator.cs
- ToolStripContentPanelRenderEventArgs.cs
- FamilyMap.cs
- ThreadStateException.cs