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
- SQLSingleStorage.cs
- DockPattern.cs
- DrawingCollection.cs
- CompositeActivityMarkupSerializer.cs
- SharedPersonalizationStateInfo.cs
- UICuesEvent.cs
- Deserializer.cs
- ConnectionStringsSection.cs
- ZoneIdentityPermission.cs
- PlacementWorkspace.cs
- _ContextAwareResult.cs
- Thickness.cs
- ContentPlaceHolder.cs
- ClientOperationFormatterProvider.cs
- DetailsViewDeletedEventArgs.cs
- RegexWriter.cs
- XPathAncestorQuery.cs
- ViewManager.cs
- IUnknownConstantAttribute.cs
- DataBindingCollectionConverter.cs
- SafeFileMapViewHandle.cs
- ErrorReporting.cs
- Array.cs
- IMembershipProvider.cs
- VirtualDirectoryMappingCollection.cs
- TextPatternIdentifiers.cs
- panel.cs
- HttpListenerPrefixCollection.cs
- XmlQualifiedName.cs
- SamlAttributeStatement.cs
- ControlAdapter.cs
- DataSourceControlBuilder.cs
- DeclarativeExpressionConditionDeclaration.cs
- Splitter.cs
- RadioButtonBaseAdapter.cs
- MetabaseServerConfig.cs
- DataException.cs
- MembershipSection.cs
- MarkupProperty.cs
- SecurityProtocol.cs
- WebPartTransformer.cs
- TraceSource.cs
- StyleHelper.cs
- LostFocusEventManager.cs
- AdapterUtil.cs
- TemplateControlParser.cs
- XmlNodeList.cs
- KnownBoxes.cs
- PseudoWebRequest.cs
- ConditionCollection.cs
- Marshal.cs
- OperationCanceledException.cs
- SQLByteStorage.cs
- FileDialogPermission.cs
- ThreadStaticAttribute.cs
- basecomparevalidator.cs
- SessionStateContainer.cs
- MatrixValueSerializer.cs
- TextRangeEditLists.cs
- MenuRendererStandards.cs
- LocalizationCodeDomSerializer.cs
- PreloadedPackages.cs
- WindowsAuthenticationModule.cs
- BrushValueSerializer.cs
- BitmapInitialize.cs
- DoubleUtil.cs
- SessionStateUtil.cs
- MenuStrip.cs
- TypedRowGenerator.cs
- SetUserPreferenceRequest.cs
- WindowsListViewItem.cs
- xml.cs
- RNGCryptoServiceProvider.cs
- PathParser.cs
- ValidatorCompatibilityHelper.cs
- TextDecorationLocationValidation.cs
- COM2PropertyDescriptor.cs
- EventRouteFactory.cs
- HMACSHA1.cs
- OracleString.cs
- SystemWebCachingSectionGroup.cs
- SecurityHeader.cs
- ColorMap.cs
- Set.cs
- RtfControls.cs
- HitTestDrawingContextWalker.cs
- RangeValuePatternIdentifiers.cs
- PointAnimationUsingKeyFrames.cs
- DataGridBoundColumn.cs
- CompareInfo.cs
- securestring.cs
- EntityViewGenerationConstants.cs
- AttributeExtensions.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ProcessModelInfo.cs
- ComplexObject.cs
- StreamMarshaler.cs
- ReferencedAssembly.cs
- SQLMembershipProvider.cs
- GridViewUpdatedEventArgs.cs