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
- HeaderPanel.cs
- VersionConverter.cs
- TableItemProviderWrapper.cs
- DetailsViewDeleteEventArgs.cs
- TreeViewCancelEvent.cs
- MatrixIndependentAnimationStorage.cs
- CryptoProvider.cs
- Facet.cs
- XmlAggregates.cs
- ObjectListSelectEventArgs.cs
- NativeActivityAbortContext.cs
- ExpressionBuilder.cs
- ReliabilityContractAttribute.cs
- ContourSegment.cs
- PrinterResolution.cs
- MetadataArtifactLoaderCompositeResource.cs
- LayoutEngine.cs
- UseLicense.cs
- XmlReaderSettings.cs
- FeatureSupport.cs
- DefaultBindingPropertyAttribute.cs
- HtmlWindow.cs
- SafeNativeMethods.cs
- BitConverter.cs
- DisplayMemberTemplateSelector.cs
- Utils.cs
- InstanceOwnerException.cs
- HttpChannelFactory.cs
- OdbcParameter.cs
- AbandonedMutexException.cs
- XmlElementAttributes.cs
- XmlAnyElementAttributes.cs
- ProviderIncompatibleException.cs
- JoinCqlBlock.cs
- SocketElement.cs
- CodeDelegateCreateExpression.cs
- DriveNotFoundException.cs
- XmlNodeChangedEventManager.cs
- CounterSampleCalculator.cs
- UserValidatedEventArgs.cs
- WindowsStartMenu.cs
- InstanceDataCollectionCollection.cs
- OleDbDataAdapter.cs
- Scanner.cs
- ReadWriteObjectLock.cs
- MediaEntryAttribute.cs
- JsonReaderWriterFactory.cs
- WebPartCatalogAddVerb.cs
- ComponentRenameEvent.cs
- tooltip.cs
- KeysConverter.cs
- WebPartCloseVerb.cs
- LinkArea.cs
- UInt64Converter.cs
- PeerName.cs
- BinaryUtilClasses.cs
- CfgParser.cs
- NotCondition.cs
- GridViewRow.cs
- ToolboxSnapDragDropEventArgs.cs
- InvokePatternIdentifiers.cs
- ExpressionVisitorHelpers.cs
- SapiRecoContext.cs
- PageBreakRecord.cs
- FrameSecurityDescriptor.cs
- GlyphRunDrawing.cs
- WizardForm.cs
- ExtensibleClassFactory.cs
- Opcode.cs
- UIElementCollection.cs
- StringUtil.cs
- BinaryMethodMessage.cs
- SQlBooleanStorage.cs
- EditorAttributeInfo.cs
- ProjectionPruner.cs
- RectAnimationBase.cs
- BufferedWebEventProvider.cs
- GeneralTransform3DTo2DTo3D.cs
- SerializationObjectManager.cs
- Point3DAnimation.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- DataGridColumnCollection.cs
- BinaryObjectInfo.cs
- UInt64Converter.cs
- CngKeyCreationParameters.cs
- DataServiceQueryOfT.cs
- SchemaObjectWriter.cs
- HttpRequestWrapper.cs
- ListItemDetailViewAttribute.cs
- ParserExtension.cs
- StateItem.cs
- CorruptStoreException.cs
- SpnEndpointIdentity.cs
- WebControlsSection.cs
- CodeDirectiveCollection.cs
- SByteConverter.cs
- AsyncResult.cs
- GiveFeedbackEvent.cs
- Rectangle.cs
- printdlgexmarshaler.cs