Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Net / System / Net / Mail / LinkedResource.cs / 1305376 / LinkedResource.cs
using System; using System.IO; using System.Net.Mime; using System.Text; using System.Runtime.Versioning; namespace System.Net.Mail { public class LinkedResource : AttachmentBase { internal LinkedResource() { } [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] public LinkedResource(string fileName) : base(fileName) { } [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] public LinkedResource(string fileName, string mediaType) : base(fileName, mediaType) { } [ResourceExposure(ResourceScope.Machine)] [ResourceConsumption(ResourceScope.Machine)] public LinkedResource(string fileName, ContentType contentType) : base(fileName, contentType) { } public LinkedResource(Stream contentStream) : base(contentStream) { } public LinkedResource(Stream contentStream, string mediaType) : base(contentStream, mediaType) { } public LinkedResource(Stream contentStream, ContentType contentType) : base(contentStream, contentType) { } public Uri ContentLink { get { return ContentLocation; } set { ContentLocation = value; } } public static LinkedResource CreateLinkedResourceFromString(string content){ LinkedResource a = new LinkedResource(); a.SetContentFromString(content, null, String.Empty); return a; } public static LinkedResource CreateLinkedResourceFromString(string content, Encoding contentEncoding, string mediaType){ LinkedResource a = new LinkedResource(); a.SetContentFromString(content, contentEncoding, mediaType); return a; } public static LinkedResource CreateLinkedResourceFromString(string content, ContentType contentType){ LinkedResource a = new LinkedResource(); a.SetContentFromString(content, contentType); return a; } } } // 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
- InputScopeAttribute.cs
- InvalidOperationException.cs
- AnnouncementSendsAsyncResult.cs
- UriSection.cs
- BinaryFormatterSinks.cs
- StateBag.cs
- InternalControlCollection.cs
- TextRangeEdit.cs
- Model3D.cs
- ExpressionNode.cs
- ObjectCloneHelper.cs
- WebPartZone.cs
- HeaderPanel.cs
- DataGrid.cs
- BamlRecords.cs
- ScrollChrome.cs
- UIElement3D.cs
- ExecutionEngineException.cs
- DefaultSection.cs
- EdmScalarPropertyAttribute.cs
- SqlNode.cs
- ShapingEngine.cs
- PauseStoryboard.cs
- DetailsViewCommandEventArgs.cs
- PartitionedDataSource.cs
- InlineUIContainer.cs
- InstancePersistenceContext.cs
- CurrentChangedEventManager.cs
- TextCompositionEventArgs.cs
- TemplateParser.cs
- XmlFormatWriterGenerator.cs
- Int64AnimationBase.cs
- WebPartUserCapability.cs
- AnnotationResourceCollection.cs
- LogEntrySerialization.cs
- SimpleBitVector32.cs
- CapabilitiesAssignment.cs
- BindingNavigator.cs
- _HeaderInfo.cs
- GeneralTransform3DTo2D.cs
- ClientSettingsProvider.cs
- AssemblyName.cs
- GeneralTransform.cs
- DataGridItemEventArgs.cs
- AbstractSvcMapFileLoader.cs
- WebMessageBodyStyleHelper.cs
- XmlSchemaAnnotation.cs
- DoubleAnimationBase.cs
- SynchronizationContext.cs
- ScalarOps.cs
- EdmMember.cs
- WebUtil.cs
- InvokeMethod.cs
- SQLResource.cs
- Clause.cs
- Int32Collection.cs
- ServiceAppDomainAssociationProvider.cs
- Missing.cs
- ObjectIDGenerator.cs
- HttpServerUtilityBase.cs
- OSFeature.cs
- EntityContainerEntitySet.cs
- And.cs
- Screen.cs
- CellParaClient.cs
- WebConfigManager.cs
- TransactionChannelFactory.cs
- BaseTemplateCodeDomTreeGenerator.cs
- KoreanCalendar.cs
- Timeline.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ArgumentException.cs
- MatrixValueSerializer.cs
- CodeAssignStatement.cs
- MenuItem.cs
- Interfaces.cs
- XmlSchemaGroup.cs
- NonSerializedAttribute.cs
- DescriptionAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- Stylesheet.cs
- PlatformNotSupportedException.cs
- ObjectQuery_EntitySqlExtensions.cs
- BlockUIContainer.cs
- SortKey.cs
- DbReferenceCollection.cs
- TakeOrSkipWhileQueryOperator.cs
- PenLineCapValidation.cs
- BindingList.cs
- PropertyDescriptorGridEntry.cs
- SimpleWorkerRequest.cs
- PropertyPathConverter.cs
- ConfigurationManagerInternalFactory.cs
- DataTableCollection.cs
- SimpleBitVector32.cs
- XsltLoader.cs
- ListenerAdaptersInstallComponent.cs
- StringHandle.cs
- XsltArgumentList.cs
- ObjectNavigationPropertyMapping.cs