Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Resources / StreamResourceInfo.cs / 1305600 / 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
- _AutoWebProxyScriptHelper.cs
- MediaEntryAttribute.cs
- LayoutEngine.cs
- ExpandedWrapper.cs
- PersistenceException.cs
- HwndHost.cs
- HostedTcpTransportManager.cs
- GenericFlowSwitchHelper.cs
- DurationConverter.cs
- X509IssuerSerialKeyIdentifierClause.cs
- SqlRetyper.cs
- XmlSchemaSimpleTypeList.cs
- DESCryptoServiceProvider.cs
- WSMessageEncoding.cs
- ProgressChangedEventArgs.cs
- SiteMapDataSource.cs
- ListenerConstants.cs
- SettingsPropertyIsReadOnlyException.cs
- StyleConverter.cs
- EmbeddedObject.cs
- DefaultValidator.cs
- BamlWriter.cs
- MessagePropertyVariants.cs
- XMLUtil.cs
- ImpersonationContext.cs
- MailMessageEventArgs.cs
- CustomAttribute.cs
- XmlNodeReader.cs
- ETagAttribute.cs
- CodeMethodInvokeExpression.cs
- SqlUtils.cs
- TypeSystem.cs
- CharUnicodeInfo.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- MiniCustomAttributeInfo.cs
- AxisAngleRotation3D.cs
- DictionaryCustomTypeDescriptor.cs
- ObjectManager.cs
- CodeArgumentReferenceExpression.cs
- safemediahandle.cs
- OutOfMemoryException.cs
- TypeUtil.cs
- PolicyManager.cs
- Handle.cs
- ValidatingPropertiesEventArgs.cs
- XmlILCommand.cs
- RepeaterItemCollection.cs
- UserUseLicenseDictionaryLoader.cs
- VisemeEventArgs.cs
- MaterialCollection.cs
- DataFieldConverter.cs
- HttpCapabilitiesSectionHandler.cs
- DataGridViewRowEventArgs.cs
- BrushConverter.cs
- ControlPropertyNameConverter.cs
- ClientApiGenerator.cs
- RequestCacheValidator.cs
- FormViewRow.cs
- CodeBinaryOperatorExpression.cs
- WebPartConnectionsConnectVerb.cs
- ColorKeyFrameCollection.cs
- XmlArrayItemAttributes.cs
- _ConnectionGroup.cs
- CodeTypeDeclaration.cs
- StyleBamlRecordReader.cs
- CqlGenerator.cs
- Calendar.cs
- CustomErrorsSection.cs
- SmtpDigestAuthenticationModule.cs
- JsonXmlDataContract.cs
- SystemSounds.cs
- HtmlGenericControl.cs
- TextEditorLists.cs
- VisualStateManager.cs
- DataGridViewColumnCollection.cs
- PackageController.cs
- Int32RectValueSerializer.cs
- DotExpr.cs
- AnnotationDocumentPaginator.cs
- HwndHost.cs
- ExceptionUtil.cs
- WindowsListView.cs
- Misc.cs
- TreeNode.cs
- StagingAreaInputItem.cs
- CodeParameterDeclarationExpressionCollection.cs
- DataSourceView.cs
- mactripleDES.cs
- Simplifier.cs
- Control.cs
- assertwrapper.cs
- MetricEntry.cs
- RegisteredHiddenField.cs
- WeakReference.cs
- SizeChangedEventArgs.cs
- LeftCellWrapper.cs
- UDPClient.cs
- PostBackOptions.cs
- CoreSwitches.cs
- FunctionUpdateCommand.cs