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
- DataGridViewSelectedCellCollection.cs
- SqlWebEventProvider.cs
- SqlXmlStorage.cs
- MruCache.cs
- StyleSelector.cs
- HierarchicalDataTemplate.cs
- CursorEditor.cs
- GridViewEditEventArgs.cs
- StyleHelper.cs
- WorkflowOperationFault.cs
- WebConfigurationHostFileChange.cs
- LocalizationComments.cs
- SystemIcmpV4Statistics.cs
- TreeBuilderBamlTranslator.cs
- XmlSchemaInferenceException.cs
- Route.cs
- DictionaryEntry.cs
- SignatureHelper.cs
- ViewStateModeByIdAttribute.cs
- OleDbPropertySetGuid.cs
- ScaleTransform.cs
- CryptoConfig.cs
- RelatedImageListAttribute.cs
- DocumentPageHost.cs
- BadImageFormatException.cs
- ExceptionDetail.cs
- GridViewColumnCollection.cs
- QEncodedStream.cs
- SqlReorderer.cs
- TableChangeProcessor.cs
- JsonCollectionDataContract.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RelationshipNavigation.cs
- QilXmlReader.cs
- EntityViewContainer.cs
- StorageComplexTypeMapping.cs
- LabelTarget.cs
- GiveFeedbackEvent.cs
- GorillaCodec.cs
- EntityDataSourceConfigureObjectContext.cs
- WorkerProcess.cs
- AlphaSortedEnumConverter.cs
- UnauthorizedAccessException.cs
- AvTraceFormat.cs
- AdCreatedEventArgs.cs
- RecognizeCompletedEventArgs.cs
- ConfigXmlDocument.cs
- mongolianshape.cs
- SafeProcessHandle.cs
- Odbc32.cs
- DBSqlParserColumn.cs
- Exceptions.cs
- OutputScope.cs
- Visual3DCollection.cs
- ActivityStatusChangeEventArgs.cs
- ActivityBuilderHelper.cs
- Crc32Helper.cs
- ProcessInputEventArgs.cs
- HandlerWithFactory.cs
- TypeTypeConverter.cs
- SafeEventLogReadHandle.cs
- SelectionEditor.cs
- SequentialWorkflowRootDesigner.cs
- DeviceContext.cs
- ServiceOperationInvoker.cs
- SQLBytesStorage.cs
- Registration.cs
- QualifierSet.cs
- ImpersonateTokenRef.cs
- StylusShape.cs
- RoleService.cs
- Point3DValueSerializer.cs
- XmlObjectSerializerReadContext.cs
- GeneratedCodeAttribute.cs
- NullExtension.cs
- CryptoConfig.cs
- TextContainerHelper.cs
- NamespaceInfo.cs
- RawStylusInputCustomDataList.cs
- WindowsTitleBar.cs
- InputLanguageCollection.cs
- EventLogLink.cs
- InfoCardTraceRecord.cs
- ServiceMetadataPublishingElement.cs
- ColorInterpolationModeValidation.cs
- SimpleLine.cs
- ControlPaint.cs
- X509SecurityTokenParameters.cs
- CmsInterop.cs
- PenThreadWorker.cs
- LogEntryHeaderDeserializer.cs
- BitmapVisualManager.cs
- TokenBasedSet.cs
- PersonalizationAdministration.cs
- KeyedHashAlgorithm.cs
- ContentFilePart.cs
- BindUriHelper.cs
- IPHostEntry.cs
- OdbcEnvironmentHandle.cs
- ComplexType.cs