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
- XLinq.cs
- CompiledXpathExpr.cs
- ScrollContentPresenter.cs
- XhtmlBasicTextViewAdapter.cs
- ConnectionPointCookie.cs
- DependencyPropertyHelper.cs
- TableHeaderCell.cs
- FileLoadException.cs
- PropertyTabChangedEvent.cs
- DataServiceContext.cs
- OperationValidationEventArgs.cs
- WebServiceParameterData.cs
- SerialPinChanges.cs
- NavigateEvent.cs
- GenericFlowSwitchHelper.cs
- BevelBitmapEffect.cs
- CallbackDebugBehavior.cs
- ETagAttribute.cs
- DispatchWrapper.cs
- xsdvalidator.cs
- ValidatingPropertiesEventArgs.cs
- AsymmetricCryptoHandle.cs
- SspiSafeHandles.cs
- HtmlInputReset.cs
- UserMapPath.cs
- CollectionContainer.cs
- QueryStringConverter.cs
- DefaultMemberAttribute.cs
- TextEmbeddedObject.cs
- TextFormatterImp.cs
- sapiproxy.cs
- AssemblyBuilderData.cs
- DesignTimeType.cs
- UIElementIsland.cs
- versioninfo.cs
- IHttpResponseInternal.cs
- RecognizerInfo.cs
- PrivateFontCollection.cs
- ByValueEqualityComparer.cs
- ButtonRenderer.cs
- SelectionEditingBehavior.cs
- WorkflowControlEndpoint.cs
- ToolboxComponentsCreatedEventArgs.cs
- ConfigurationValidatorAttribute.cs
- SingleKeyFrameCollection.cs
- updatecommandorderer.cs
- SoapAttributeAttribute.cs
- DateTimeUtil.cs
- SmtpCommands.cs
- ResXResourceWriter.cs
- TextElementEnumerator.cs
- TraceHandlerErrorFormatter.cs
- Conditional.cs
- XmlReflectionMember.cs
- xamlnodes.cs
- BitmapImage.cs
- HtmlInputFile.cs
- wgx_sdk_version.cs
- SqlFileStream.cs
- SkinBuilder.cs
- Int32Animation.cs
- GcHandle.cs
- ControlCollection.cs
- ComplexType.cs
- ProtectedConfiguration.cs
- SystemWebSectionGroup.cs
- OrthographicCamera.cs
- PageEventArgs.cs
- PopupEventArgs.cs
- GPPOINT.cs
- QfeChecker.cs
- SiteMapDataSourceView.cs
- CrossSiteScriptingValidation.cs
- FontSource.cs
- AnimatedTypeHelpers.cs
- BrushMappingModeValidation.cs
- ModelPerspective.cs
- SqlUdtInfo.cs
- UserControl.cs
- TreeNodeStyle.cs
- AncillaryOps.cs
- CommandField.cs
- ToolStripDropDown.cs
- CrossSiteScriptingValidation.cs
- XmlDomTextWriter.cs
- TransformGroup.cs
- EtwTrace.cs
- DecoderFallbackWithFailureFlag.cs
- TableLayoutPanelCodeDomSerializer.cs
- RowTypeElement.cs
- CodeDelegateCreateExpression.cs
- AutoCompleteStringCollection.cs
- XmlSchemaObjectCollection.cs
- BridgeDataReader.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XsltInput.cs
- ValueTypeFixupInfo.cs
- TextParaClient.cs
- PrincipalPermission.cs
- ObjectQueryState.cs