Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Net / System / Net / Mail / LinkedResource.cs / 1 / 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. 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
- SrgsGrammarCompiler.cs
- MenuAdapter.cs
- OledbConnectionStringbuilder.cs
- EventLogEntryCollection.cs
- MarshalDirectiveException.cs
- PropertyCollection.cs
- EntityStoreSchemaGenerator.cs
- Exceptions.cs
- XmlNodeComparer.cs
- WindowsAuthenticationModule.cs
- WebPartTracker.cs
- TextOutput.cs
- CalendarDateRangeChangingEventArgs.cs
- XPathDocumentIterator.cs
- SemanticKeyElement.cs
- TypeBuilder.cs
- BuildProviderCollection.cs
- FormsAuthenticationTicket.cs
- ColumnMapVisitor.cs
- DataTrigger.cs
- DesignerTransactionCloseEvent.cs
- X509Chain.cs
- SimpleLine.cs
- WizardForm.cs
- TrackBar.cs
- ErrorFormatterPage.cs
- EntityContainerEntitySet.cs
- DefaultProxySection.cs
- TreeViewAutomationPeer.cs
- HandlerBase.cs
- MsmqOutputMessage.cs
- InlineUIContainer.cs
- MSHTMLHost.cs
- ProcessHostMapPath.cs
- HotSpot.cs
- _LazyAsyncResult.cs
- CompositeFontInfo.cs
- Propagator.cs
- AdapterDictionary.cs
- ToolStripButton.cs
- Serializer.cs
- EventSinkHelperWriter.cs
- Compiler.cs
- BaseDataListActionList.cs
- ThumbAutomationPeer.cs
- XmlCustomFormatter.cs
- OracleCommand.cs
- ParseNumbers.cs
- MetadataCacheItem.cs
- StringDictionary.cs
- ScrollData.cs
- DecoderReplacementFallback.cs
- StatusBarDrawItemEvent.cs
- MexHttpBindingElement.cs
- CanonicalFormWriter.cs
- SendActivityDesignerTheme.cs
- RedBlackList.cs
- StringConcat.cs
- DiscoveryDocumentLinksPattern.cs
- ConfigXmlElement.cs
- BitmapInitialize.cs
- FragmentQuery.cs
- KeyInterop.cs
- ExpandSegmentCollection.cs
- XmlSubtreeReader.cs
- HttpHandlerActionCollection.cs
- TextRange.cs
- DataIdProcessor.cs
- XpsFilter.cs
- WorkItem.cs
- OptimizedTemplateContentHelper.cs
- WsdlInspector.cs
- AmbientLight.cs
- SmiContextFactory.cs
- Codec.cs
- ProxyHelper.cs
- WindowsAltTab.cs
- OdbcCommandBuilder.cs
- DataGridView.cs
- CompoundFileDeflateTransform.cs
- DataGridItemCollection.cs
- HtmlContainerControl.cs
- AdditionalEntityFunctions.cs
- ModelService.cs
- RolePrincipal.cs
- ZipIOExtraField.cs
- ComplexBindingPropertiesAttribute.cs
- SystemException.cs
- CoreSwitches.cs
- HyperLinkDesigner.cs
- initElementDictionary.cs
- BamlResourceSerializer.cs
- SymDocumentType.cs
- PlacementWorkspace.cs
- AudioDeviceOut.cs
- SafeEventLogReadHandle.cs
- DispatcherEventArgs.cs
- ObjectView.cs
- XmlAtomicValue.cs
- CompositionTarget.cs