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
- XPathNodeInfoAtom.cs
- ContentFilePart.cs
- SqlRowUpdatedEvent.cs
- X509Chain.cs
- TTSEvent.cs
- RenderTargetBitmap.cs
- AdornerLayer.cs
- SessionPageStatePersister.cs
- Attributes.cs
- Parallel.cs
- UIElementIsland.cs
- BaseValidator.cs
- PropertyStore.cs
- XmlSortKey.cs
- ToolBar.cs
- ZipIOLocalFileDataDescriptor.cs
- ClientTargetSection.cs
- MetadataSerializer.cs
- OrthographicCamera.cs
- HttpException.cs
- WindowsStatic.cs
- CryptoStream.cs
- XmlSchemaNotation.cs
- assemblycache.cs
- UnitySerializationHolder.cs
- ReleaseInstanceMode.cs
- AcceleratedTokenProvider.cs
- AssemblyBuilderData.cs
- TextSegment.cs
- BinaryObjectReader.cs
- EndpointAddressMessageFilter.cs
- EntityDataSourceQueryBuilder.cs
- FileNotFoundException.cs
- XmlLinkedNode.cs
- TrackingProvider.cs
- NamespaceQuery.cs
- ButtonAutomationPeer.cs
- EntityContainer.cs
- SplineKeyFrames.cs
- XmlILTrace.cs
- Number.cs
- BookmarkEventArgs.cs
- CapabilitiesRule.cs
- XhtmlBasicLiteralTextAdapter.cs
- CacheDependency.cs
- PinnedBufferMemoryStream.cs
- DataObjectFieldAttribute.cs
- UniqueConstraint.cs
- LinkedResource.cs
- NumericExpr.cs
- TableLayoutStyle.cs
- ClosableStream.cs
- CommonDialog.cs
- TableStyle.cs
- CodeAttachEventStatement.cs
- ViewStateException.cs
- ApplicationBuildProvider.cs
- CompilerGeneratedAttribute.cs
- basevalidator.cs
- CombinedGeometry.cs
- BatchParser.cs
- CustomErrorCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- GridLengthConverter.cs
- ClassDataContract.cs
- SecurityTimestamp.cs
- InvalidFilterCriteriaException.cs
- ConfigXmlElement.cs
- StrokeNodeEnumerator.cs
- TaskFileService.cs
- EdmProperty.cs
- SqlErrorCollection.cs
- GenericRootAutomationPeer.cs
- DataBoundControlAdapter.cs
- StyleBamlTreeBuilder.cs
- CodeCommentStatement.cs
- OleDbPermission.cs
- Substitution.cs
- DropSource.cs
- XmlMemberMapping.cs
- TypeConverter.cs
- EventArgs.cs
- WebServiceEnumData.cs
- ScriptingAuthenticationServiceSection.cs
- ConfigurationManagerHelperFactory.cs
- BinaryConverter.cs
- ContextMenu.cs
- ListBindingHelper.cs
- AppDomainFactory.cs
- DbCommandDefinition.cs
- XPathBinder.cs
- TemplateBindingExtensionConverter.cs
- PagesSection.cs
- ProviderConnectionPoint.cs
- AsyncOperationManager.cs
- JumpTask.cs
- TraceSection.cs
- FrameworkContentElement.cs
- Latin1Encoding.cs
- EntryWrittenEventArgs.cs