Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DrawingVisual.cs
- InputMethodStateTypeInfo.cs
- Enum.cs
- ControlValuePropertyAttribute.cs
- OperationDescription.cs
- ScriptResourceAttribute.cs
- ProgramNode.cs
- SiteMapNode.cs
- CurrentChangingEventArgs.cs
- DataGridViewRowCancelEventArgs.cs
- BinaryReader.cs
- InlineObject.cs
- TypeConverterHelper.cs
- LogSwitch.cs
- MimeFormImporter.cs
- WebPartConnectionsCloseVerb.cs
- DataBoundControlAdapter.cs
- DeclarativeCatalogPart.cs
- AutoGeneratedFieldProperties.cs
- CounterSampleCalculator.cs
- PrimitiveSchema.cs
- WebPartZoneCollection.cs
- AmbientValueAttribute.cs
- IndexedWhereQueryOperator.cs
- PriorityBindingExpression.cs
- DiffuseMaterial.cs
- ModuleElement.cs
- TrackPointCollection.cs
- XhtmlCssHandler.cs
- Activity.cs
- securitycriticaldataformultiplegetandset.cs
- PreviewKeyDownEventArgs.cs
- WebPartEventArgs.cs
- EventWaitHandleSecurity.cs
- CommandID.cs
- unsafenativemethodstextservices.cs
- WasNotInstalledException.cs
- DrawListViewSubItemEventArgs.cs
- FormsAuthenticationModule.cs
- PartialList.cs
- XPathMultyIterator.cs
- HitTestWithPointDrawingContextWalker.cs
- BooleanToVisibilityConverter.cs
- HtmlControl.cs
- SystemResources.cs
- CodeEntryPointMethod.cs
- ToolStripTemplateNode.cs
- EntityCommandDefinition.cs
- RolePrincipal.cs
- TimersDescriptionAttribute.cs
- StateRuntime.cs
- AsyncPostBackErrorEventArgs.cs
- BackgroundWorker.cs
- StopStoryboard.cs
- RepeatBehavior.cs
- DocumentSequenceHighlightLayer.cs
- StorageMappingFragment.cs
- ImageListStreamer.cs
- DataProtection.cs
- ImageSourceConverter.cs
- Size3D.cs
- XhtmlTextWriter.cs
- NullRuntimeConfig.cs
- oledbconnectionstring.cs
- HostedElements.cs
- ButtonChrome.cs
- Timer.cs
- ADMembershipUser.cs
- LinkArea.cs
- XmlStreamStore.cs
- ListViewInsertionMark.cs
- UserControlCodeDomTreeGenerator.cs
- EdmMember.cs
- _IPv4Address.cs
- LinearKeyFrames.cs
- EntityProxyTypeInfo.cs
- CopyCodeAction.cs
- DecimalSumAggregationOperator.cs
- CodeStatement.cs
- ApplicationSecurityManager.cs
- __ComObject.cs
- AssemblyBuilder.cs
- PublisherIdentityPermission.cs
- SecurityElement.cs
- WebPartVerbCollection.cs
- DiagnosticEventProvider.cs
- _KerberosClient.cs
- GeneralTransform3DTo2DTo3D.cs
- AttachInfo.cs
- ConfigurationValidatorAttribute.cs
- TextTreePropertyUndoUnit.cs
- QuestionEventArgs.cs
- DesignerActionService.cs
- LocatorPart.cs
- MexBindingElement.cs
- ExpressionEditorAttribute.cs
- TrackingServices.cs
- Win32KeyboardDevice.cs
- PropertySourceInfo.cs
- WebPartMinimizeVerb.cs