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
- AddInControllerImpl.cs
- ByteFacetDescriptionElement.cs
- MessageQueue.cs
- SortExpressionBuilder.cs
- UserInitiatedNavigationPermission.cs
- ListenerTraceUtility.cs
- HttpWriter.cs
- ReflectionTypeLoadException.cs
- infer.cs
- UnsafeNativeMethods.cs
- UInt16Storage.cs
- ProviderSettingsCollection.cs
- IsolatedStorage.cs
- CodeAttributeDeclarationCollection.cs
- XamlParser.cs
- GenericArgumentsUpdater.cs
- InvalidOleVariantTypeException.cs
- EventLog.cs
- ActiveDesignSurfaceEvent.cs
- DataBindingExpressionBuilder.cs
- SimpleRecyclingCache.cs
- CommandLibraryHelper.cs
- DesignerTransactionCloseEvent.cs
- HighlightVisual.cs
- DelegateSerializationHolder.cs
- OdbcConnectionFactory.cs
- securitycriticaldataformultiplegetandset.cs
- filewebrequest.cs
- WebPartRestoreVerb.cs
- TempFiles.cs
- DefinitionBase.cs
- CalculatedColumn.cs
- HierarchicalDataSourceIDConverter.cs
- Slider.cs
- FontUnitConverter.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- LeaseManager.cs
- ThreadPool.cs
- PathFigureCollection.cs
- Light.cs
- XmlSchemaAppInfo.cs
- EntityDataSourceContextCreatingEventArgs.cs
- AccessDataSourceView.cs
- TrustLevel.cs
- HandleExceptionArgs.cs
- ConfigurationSettings.cs
- XXXOnTypeBuilderInstantiation.cs
- MdiWindowListStrip.cs
- LogicalTreeHelper.cs
- GridLength.cs
- RootDesignerSerializerAttribute.cs
- ValidationSummary.cs
- NetCodeGroup.cs
- Matrix3D.cs
- AuthStoreRoleProvider.cs
- RSAPKCS1SignatureDeformatter.cs
- TreeWalker.cs
- SchemaObjectWriter.cs
- FunctionParameter.cs
- SQLMoneyStorage.cs
- FontDifferentiator.cs
- RequestQueue.cs
- DefaultWorkflowSchedulerService.cs
- XmlSchemaExternal.cs
- ImpersonateTokenRef.cs
- DataSourceComponent.cs
- DotAtomReader.cs
- DataSvcMapFileSerializer.cs
- FileSystemInfo.cs
- KeyValuePair.cs
- VisualStyleElement.cs
- DebuggerAttributes.cs
- COM2Properties.cs
- CommandSet.cs
- NativeMethodsOther.cs
- SerializationInfo.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- HtmlTable.cs
- CodeAttributeDeclaration.cs
- PeerNameRegistration.cs
- ServiceMetadataPublishingElement.cs
- CodeEntryPointMethod.cs
- TargetConverter.cs
- BinaryQueryOperator.cs
- WebPartDisplayModeEventArgs.cs
- PromptEventArgs.cs
- ColumnHeader.cs
- CodeIdentifiers.cs
- SystemNetworkInterface.cs
- CodeCommentStatement.cs
- Debug.cs
- DetailsViewDeleteEventArgs.cs
- DesignOnlyAttribute.cs
- SerializationObjectManager.cs
- invalidudtexception.cs
- ProcessProtocolHandler.cs
- Duration.cs
- SqlTopReducer.cs
- UnsafeNativeMethodsPenimc.cs
- RouteParametersHelper.cs