Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- LineInfo.cs
- MissingMemberException.cs
- TransformerTypeCollection.cs
- SubclassTypeValidator.cs
- MachineSettingsSection.cs
- SerializationFieldInfo.cs
- AutoGeneratedFieldProperties.cs
- Number.cs
- ContainerVisual.cs
- AssemblyFilter.cs
- ImageCodecInfo.cs
- DiscreteKeyFrames.cs
- FunctionParameter.cs
- XsdCachingReader.cs
- GridPatternIdentifiers.cs
- COAUTHIDENTITY.cs
- InputLanguageCollection.cs
- ScriptingScriptResourceHandlerSection.cs
- _ContextAwareResult.cs
- SettingsPropertyIsReadOnlyException.cs
- SqlCacheDependencyDatabaseCollection.cs
- DBDataPermissionAttribute.cs
- CodeSnippetStatement.cs
- PageThemeParser.cs
- ToolboxComponentsCreatingEventArgs.cs
- SvcFileManager.cs
- Splitter.cs
- DependencyObjectProvider.cs
- WebPartDeleteVerb.cs
- CompleteWizardStep.cs
- AssemblyAttributesGoHere.cs
- Choices.cs
- WebConfigurationHostFileChange.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- UnsafeNativeMethods.cs
- ProxyFragment.cs
- ControllableStoryboardAction.cs
- FilterableAttribute.cs
- DoubleAnimationUsingPath.cs
- MessageSecurityVersionConverter.cs
- sqlinternaltransaction.cs
- COM2EnumConverter.cs
- Camera.cs
- SplitterPanel.cs
- CodeChecksumPragma.cs
- TdsParserSessionPool.cs
- BamlBinaryReader.cs
- MetadataPropertyCollection.cs
- BasicExpressionVisitor.cs
- SessionStateModule.cs
- SeekStoryboard.cs
- Variant.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ExecutorLocksHeldException.cs
- WebPartVerbCollection.cs
- StyleTypedPropertyAttribute.cs
- FormViewModeEventArgs.cs
- IdentityValidationException.cs
- SpellerError.cs
- TextTreeObjectNode.cs
- ExceptionUtil.cs
- HttpPostServerProtocol.cs
- M3DUtil.cs
- NameSpaceEvent.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ExpressionBuilderCollection.cs
- ProtocolsConfigurationHandler.cs
- ByeMessageApril2005.cs
- InstanceKeyCompleteException.cs
- MouseGestureValueSerializer.cs
- BaseDataListDesigner.cs
- ChooseAction.cs
- DiscoveryDefaults.cs
- DataRow.cs
- RectConverter.cs
- HttpConfigurationSystem.cs
- BackStopAuthenticationModule.cs
- InputScopeConverter.cs
- EventWaitHandleSecurity.cs
- SaveFileDialog.cs
- EmptyStringExpandableObjectConverter.cs
- StoryFragments.cs
- CommunicationObjectFaultedException.cs
- PageEventArgs.cs
- OdbcConnectionString.cs
- WebPartVerb.cs
- CursorConverter.cs
- MemoryStream.cs
- HebrewCalendar.cs
- DaylightTime.cs
- SuppressIldasmAttribute.cs
- ValidationError.cs
- PreservationFileReader.cs
- XmlDomTextWriter.cs
- LeaseManager.cs
- ContainerUIElement3D.cs
- UserPreferenceChangedEventArgs.cs
- PackagePartCollection.cs
- UnmanagedBitmapWrapper.cs
- XmlSchemaSimpleContentRestriction.cs