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
- ListSortDescriptionCollection.cs
- EventMappingSettingsCollection.cs
- ArgumentDesigner.xaml.cs
- HtmlInputButton.cs
- CompilerGeneratedAttribute.cs
- TouchEventArgs.cs
- BindingsCollection.cs
- ClientSponsor.cs
- ProcessModuleDesigner.cs
- OleDbParameterCollection.cs
- GlyphRunDrawing.cs
- ErrorsHelper.cs
- PinnedBufferMemoryStream.cs
- XmlCountingReader.cs
- ImageMapEventArgs.cs
- HtmlInputText.cs
- BinaryObjectInfo.cs
- TypeSource.cs
- SqlTypesSchemaImporter.cs
- QueueProcessor.cs
- GroupStyle.cs
- OptionalMessageQuery.cs
- DataGridViewTextBoxColumn.cs
- ISAPIWorkerRequest.cs
- IssuedTokenClientBehaviorsElement.cs
- FixedFlowMap.cs
- ImageListDesigner.cs
- StylusPointPropertyInfoDefaults.cs
- BoundField.cs
- LineUtil.cs
- BrushValueSerializer.cs
- AssemblyLoader.cs
- SystemMulticastIPAddressInformation.cs
- KeyFrames.cs
- ProfilePropertyMetadata.cs
- ContainsSearchOperator.cs
- ImageMapEventArgs.cs
- UInt64.cs
- GenericTypeParameterBuilder.cs
- Directory.cs
- StaticExtensionConverter.cs
- HttpRequestCacheValidator.cs
- RichTextBoxDesigner.cs
- DesignerActionPropertyItem.cs
- ActivationArguments.cs
- AlternateView.cs
- PermissionRequestEvidence.cs
- PointCollectionValueSerializer.cs
- TcpPortSharing.cs
- XmlHierarchicalEnumerable.cs
- CompositeDispatchFormatter.cs
- TaiwanLunisolarCalendar.cs
- OdbcDataReader.cs
- Quad.cs
- CodeAccessPermission.cs
- ApplicationHost.cs
- HostingEnvironment.cs
- XamlDebuggerXmlReader.cs
- MemoryFailPoint.cs
- OrderedDictionary.cs
- WebPartCloseVerb.cs
- XmlSchemaCompilationSettings.cs
- NamespaceList.cs
- XmlSchemaElement.cs
- DiscoveryReferences.cs
- EntryWrittenEventArgs.cs
- IndicShape.cs
- ReadingWritingEntityEventArgs.cs
- COM2PropertyDescriptor.cs
- KeyedCollection.cs
- UserPreferenceChangingEventArgs.cs
- WebExceptionStatus.cs
- WebBrowserContainer.cs
- _ConnectStream.cs
- AssemblyBuilder.cs
- sqlser.cs
- SettingsSection.cs
- KeyValueSerializer.cs
- CapabilitiesPattern.cs
- CheckBox.cs
- Compiler.cs
- ManualResetEvent.cs
- DefaultAutoFieldGenerator.cs
- SqlConnectionFactory.cs
- ECDsa.cs
- DataGridViewSelectedRowCollection.cs
- ConnectionStringsExpressionEditor.cs
- NativeMethods.cs
- SQLInt32.cs
- EventMemberCodeDomSerializer.cs
- ShapingWorkspace.cs
- PropertyPathWorker.cs
- Hyperlink.cs
- CollectionView.cs
- ObjectMemberMapping.cs
- _OverlappedAsyncResult.cs
- GlyphsSerializer.cs
- WmlListAdapter.cs
- Viewport2DVisual3D.cs
- bidPrivateBase.cs