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
- WindowsSpinner.cs
- XAMLParseException.cs
- NavigationPropertyAccessor.cs
- AuthenticationManager.cs
- ListControlDesigner.cs
- DesignerOptions.cs
- LongAverageAggregationOperator.cs
- NeedSkipTokenVisitor.cs
- CopyOfAction.cs
- UIPropertyMetadata.cs
- Viewport2DVisual3D.cs
- SessionKeyExpiredException.cs
- ExceptionUtil.cs
- ExtendedPropertyDescriptor.cs
- UserUseLicenseDictionaryLoader.cs
- PlatformCulture.cs
- NetNamedPipeBindingCollectionElement.cs
- diagnosticsswitches.cs
- ObsoleteAttribute.cs
- DateTimeOffsetStorage.cs
- SystemUdpStatistics.cs
- TemplatedWizardStep.cs
- GeometryCombineModeValidation.cs
- SpeechSeg.cs
- TTSVoice.cs
- LoadRetryConstantStrategy.cs
- SlipBehavior.cs
- SendKeys.cs
- ExtenderHelpers.cs
- AnnouncementEndpointElement.cs
- PrintPreviewGraphics.cs
- StorageInfo.cs
- RuleProcessor.cs
- PropertyValue.cs
- DataViewManagerListItemTypeDescriptor.cs
- XappLauncher.cs
- RNGCryptoServiceProvider.cs
- AdCreatedEventArgs.cs
- KnownColorTable.cs
- HtmlElementEventArgs.cs
- ControlCollection.cs
- TrackingStringDictionary.cs
- EventLogEntry.cs
- QilCloneVisitor.cs
- HealthMonitoringSection.cs
- TextRange.cs
- XmlSerializerVersionAttribute.cs
- SystemIPv4InterfaceProperties.cs
- Constraint.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- StorageRoot.cs
- Rotation3D.cs
- SelectQueryOperator.cs
- UnknownWrapper.cs
- BitmapMetadataBlob.cs
- SystemColors.cs
- NonParentingControl.cs
- SecUtil.cs
- QilGenerator.cs
- CodeCommentStatement.cs
- SqlNodeAnnotations.cs
- EntityWithChangeTrackerStrategy.cs
- ServicesExceptionNotHandledEventArgs.cs
- BamlLocalizableResourceKey.cs
- ForAllOperator.cs
- CustomBindingElement.cs
- TableCell.cs
- CustomCategoryAttribute.cs
- IndexedString.cs
- TouchDevice.cs
- isolationinterop.cs
- DataSourceSelectArguments.cs
- ResourceContainer.cs
- XmlHierarchicalEnumerable.cs
- WebPartMenu.cs
- MessageQueueEnumerator.cs
- FieldInfo.cs
- PermissionListSet.cs
- XmlILOptimizerVisitor.cs
- Timer.cs
- RedistVersionInfo.cs
- ProvidersHelper.cs
- DigestTraceRecordHelper.cs
- ReservationNotFoundException.cs
- DetailsViewRowCollection.cs
- PartialClassGenerationTask.cs
- ButtonChrome.cs
- EtwProvider.cs
- WSHttpBindingBase.cs
- ProviderException.cs
- ColumnPropertiesGroup.cs
- Imaging.cs
- TraceLog.cs
- WebPartUserCapability.cs
- FontUnit.cs
- Stack.cs
- NgenServicingAttributes.cs
- SortFieldComparer.cs
- Delegate.cs
- ToolStripButton.cs