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
- StorageBasedPackageProperties.cs
- WinFormsSecurity.cs
- SqlCaseSimplifier.cs
- XmlCustomFormatter.cs
- BoundingRectTracker.cs
- Light.cs
- PerfCounters.cs
- ConfigXmlDocument.cs
- FontResourceCache.cs
- TagMapInfo.cs
- GPStream.cs
- ExtenderProviderService.cs
- TdsParserStateObject.cs
- X509RawDataKeyIdentifierClause.cs
- CodeConstructor.cs
- JumpPath.cs
- UrlPath.cs
- initElementDictionary.cs
- PixelShader.cs
- SurrogateSelector.cs
- CompiledQuery.cs
- UInt32Converter.cs
- FormattedText.cs
- PolicyImporterElementCollection.cs
- DiagnosticTrace.cs
- WindowAutomationPeer.cs
- Errors.cs
- UnmanagedHandle.cs
- ComboBoxDesigner.cs
- UrlMappingCollection.cs
- AlternateView.cs
- DesignerTransaction.cs
- ChtmlLinkAdapter.cs
- _IPv4Address.cs
- QilValidationVisitor.cs
- StateManagedCollection.cs
- RangeValuePattern.cs
- HttpStreamMessage.cs
- CngProvider.cs
- DriveNotFoundException.cs
- SettingsProperty.cs
- TemplateEditingService.cs
- TextContainer.cs
- ConnectionManagementElementCollection.cs
- HandlerFactoryCache.cs
- ServicePoint.cs
- PenThread.cs
- SafeFileHandle.cs
- EUCJPEncoding.cs
- DataGridColumnCollection.cs
- ThrowHelper.cs
- ObjectDataSourceMethodEventArgs.cs
- BinaryMessageEncoder.cs
- CompositeDataBoundControl.cs
- PseudoWebRequest.cs
- LoadWorkflowByKeyAsyncResult.cs
- StylusPlugInCollection.cs
- OdbcConnection.cs
- Literal.cs
- DataGridClipboardCellContent.cs
- LinqDataSourceUpdateEventArgs.cs
- Int32Animation.cs
- PixelShader.cs
- DataSvcMapFile.cs
- TextParaLineResult.cs
- TableItemStyle.cs
- FolderBrowserDialog.cs
- Pen.cs
- IdentityNotMappedException.cs
- DBDataPermission.cs
- SyndicationDeserializer.cs
- SqlDataSourceEnumerator.cs
- SQLUtility.cs
- IItemProperties.cs
- TemplatedMailWebEventProvider.cs
- TimelineCollection.cs
- CodeCatchClause.cs
- ErrorTableItemStyle.cs
- RemotingServices.cs
- DataGridItem.cs
- ColorContextHelper.cs
- CacheAxisQuery.cs
- TableLayoutStyleCollection.cs
- XomlCompilerParameters.cs
- SrgsNameValueTag.cs
- WebPartVerbCollection.cs
- SuppressIldasmAttribute.cs
- WebBrowserEvent.cs
- RecognitionEventArgs.cs
- TypeLoadException.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ItemChangedEventArgs.cs
- ProtocolViolationException.cs
- OracleInternalConnection.cs
- DesignerOptions.cs
- CategoryEditor.cs
- IUnknownConstantAttribute.cs
- References.cs
- XmlAnyElementAttributes.cs
- ConfigurationManagerHelperFactory.cs