Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- IndicCharClassifier.cs
- XmlNode.cs
- FixedDocumentSequencePaginator.cs
- RsaKeyIdentifierClause.cs
- MetabaseServerConfig.cs
- Number.cs
- InProcStateClientManager.cs
- PrincipalPermission.cs
- InvalidCastException.cs
- UnmanagedMemoryStreamWrapper.cs
- ExpressionPrefixAttribute.cs
- DetailsViewDeletedEventArgs.cs
- ClonableStack.cs
- BitmapEffectInput.cs
- ViewValidator.cs
- SetStoryboardSpeedRatio.cs
- ComplexTypeEmitter.cs
- HtmlInputControl.cs
- NavigatingCancelEventArgs.cs
- CodeTypeConstructor.cs
- Encoding.cs
- FontClient.cs
- RegexCaptureCollection.cs
- WebBrowserHelper.cs
- RangeContentEnumerator.cs
- PersonalizableAttribute.cs
- GridViewCommandEventArgs.cs
- ComAdminWrapper.cs
- SelectionWordBreaker.cs
- DrawListViewSubItemEventArgs.cs
- SimpleTypeResolver.cs
- _NegoState.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- PingOptions.cs
- SoundPlayerAction.cs
- ReadWriteObjectLock.cs
- RequiredAttributeAttribute.cs
- ControlIdConverter.cs
- RemotingConfigParser.cs
- DesignerTransaction.cs
- HelpEvent.cs
- DataSourceComponent.cs
- FixedBufferAttribute.cs
- ComponentChangedEvent.cs
- HttpCapabilitiesSectionHandler.cs
- EncodingTable.cs
- XmlDictionaryString.cs
- UnionCqlBlock.cs
- FormParameter.cs
- CancellationToken.cs
- DecimalKeyFrameCollection.cs
- SelectManyQueryOperator.cs
- TableDetailsCollection.cs
- OpCodes.cs
- BindingManagerDataErrorEventArgs.cs
- JsonByteArrayDataContract.cs
- ResourceDisplayNameAttribute.cs
- WindowsFont.cs
- DocumentReference.cs
- ApplicationManager.cs
- AssertFilter.cs
- UnmanagedMemoryStreamWrapper.cs
- EventLogPermissionAttribute.cs
- XmlWriter.cs
- DeclarativeCatalogPart.cs
- MinimizableAttributeTypeConverter.cs
- ConnectionInterfaceCollection.cs
- EasingKeyFrames.cs
- SafeViewOfFileHandle.cs
- Exception.cs
- RegexWorker.cs
- BitmapPalette.cs
- BindValidator.cs
- XsdDuration.cs
- GreenMethods.cs
- TextOutput.cs
- OleDbError.cs
- CurrencyManager.cs
- basenumberconverter.cs
- HttpCacheVaryByContentEncodings.cs
- TagPrefixInfo.cs
- AbandonedMutexException.cs
- DbException.cs
- BuildProviderCollection.cs
- StackSpiller.Bindings.cs
- Int16Converter.cs
- DataServiceContext.cs
- CacheAxisQuery.cs
- RadialGradientBrush.cs
- ScrollViewer.cs
- SqlMethodCallConverter.cs
- TableItemPatternIdentifiers.cs
- NameValueCollection.cs
- FontClient.cs
- OracleRowUpdatingEventArgs.cs
- ByteViewer.cs
- SHA512.cs
- MimeTypePropertyAttribute.cs
- ScrollItemPattern.cs
- ExportOptions.cs