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
- ConfigXmlReader.cs
- UriSchemeKeyedCollection.cs
- Header.cs
- VisualBrush.cs
- RuleCache.cs
- NonParentingControl.cs
- VoiceChangeEventArgs.cs
- DesignerVerb.cs
- FontCacheUtil.cs
- FixedSOMSemanticBox.cs
- PageCache.cs
- ForwardPositionQuery.cs
- DocumentXPathNavigator.cs
- TraceSection.cs
- XmlCountingReader.cs
- CodeNamespaceCollection.cs
- ArithmeticException.cs
- ButtonBase.cs
- ThumbAutomationPeer.cs
- ProxyWebPartConnectionCollection.cs
- CustomCredentialPolicy.cs
- NotificationContext.cs
- HttpCapabilitiesBase.cs
- BaseParser.cs
- nulltextnavigator.cs
- UIElementPropertyUndoUnit.cs
- StackSpiller.Generated.cs
- TemplateControl.cs
- BitmapMetadataBlob.cs
- RNGCryptoServiceProvider.cs
- IncrementalReadDecoders.cs
- TrackingMemoryStream.cs
- ComboBox.cs
- TaiwanLunisolarCalendar.cs
- DesignerForm.cs
- DuplicateWaitObjectException.cs
- CompensatableTransactionScopeActivityDesigner.cs
- MultipartIdentifier.cs
- TextAction.cs
- MetadataCacheItem.cs
- PresentationAppDomainManager.cs
- AxDesigner.cs
- recordstatefactory.cs
- MatrixStack.cs
- SolidColorBrush.cs
- XmlSerializerNamespaces.cs
- PageSettings.cs
- ValidatedControlConverter.cs
- CustomValidator.cs
- NegotiateStream.cs
- StringDictionaryEditor.cs
- ClipboardProcessor.cs
- Char.cs
- DataServiceProviderMethods.cs
- WindowsListViewItemCheckBox.cs
- UnsafeNativeMethods.cs
- Evaluator.cs
- KnownTypesHelper.cs
- Error.cs
- SqlCommandSet.cs
- XmlStreamStore.cs
- PrivilegeNotHeldException.cs
- IPHostEntry.cs
- DesigntimeLicenseContextSerializer.cs
- FreezableDefaultValueFactory.cs
- ItemList.cs
- AnimatedTypeHelpers.cs
- MobileErrorInfo.cs
- TemplateEditingVerb.cs
- StyleHelper.cs
- ArrangedElement.cs
- BaseTemplateParser.cs
- ToolStripDropDownMenu.cs
- HostExecutionContextManager.cs
- RegexInterpreter.cs
- IdnElement.cs
- X509Extension.cs
- DesignBindingEditor.cs
- DBSchemaTable.cs
- Collection.cs
- BinaryFormatter.cs
- UnauthorizedWebPart.cs
- TraceListeners.cs
- XMLSyntaxException.cs
- AxHost.cs
- SoundPlayerAction.cs
- graph.cs
- figurelengthconverter.cs
- ScriptResourceHandler.cs
- BrowserCapabilitiesCodeGenerator.cs
- ClockGroup.cs
- ThrowHelper.cs
- XmlMembersMapping.cs
- MessageBodyMemberAttribute.cs
- BoundingRectTracker.cs
- DesignTimeTemplateParser.cs
- CodeTypeReferenceCollection.cs
- EditCommandColumn.cs
- TableHeaderCell.cs
- ObjectStateEntryDbUpdatableDataRecord.cs