Code:
/ 4.0 / 4.0 / 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. 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
- XmlnsPrefixAttribute.cs
- XmlSchemaComplexType.cs
- FunctionDetailsReader.cs
- RectKeyFrameCollection.cs
- DataGridViewSelectedRowCollection.cs
- MsdtcWrapper.cs
- CurrencyManager.cs
- PolyLineSegment.cs
- RtfToken.cs
- DataFormat.cs
- ExtractorMetadata.cs
- XhtmlStyleClass.cs
- ModelVisual3D.cs
- _UncName.cs
- StrongNameHelpers.cs
- NavigatorOutput.cs
- WebPartTransformerCollection.cs
- mactripleDES.cs
- ThrowHelper.cs
- MapPathBasedVirtualPathProvider.cs
- WindowInteractionStateTracker.cs
- CollaborationHelperFunctions.cs
- XmlArrayAttribute.cs
- StringUtil.cs
- DesignerDataColumn.cs
- COM2ExtendedUITypeEditor.cs
- CodeConstructor.cs
- CultureTable.cs
- StylusOverProperty.cs
- WorkflowOperationBehavior.cs
- infer.cs
- FilterQuery.cs
- SafeTokenHandle.cs
- MergablePropertyAttribute.cs
- TemplateColumn.cs
- QilNode.cs
- TracingConnectionInitiator.cs
- ManipulationDelta.cs
- FilterElement.cs
- PropertyRef.cs
- Lease.cs
- TextElementAutomationPeer.cs
- WizardStepBase.cs
- SeekStoryboard.cs
- XmlChildEnumerator.cs
- KeyInterop.cs
- Native.cs
- ColorPalette.cs
- FixedSOMGroup.cs
- WinEventWrap.cs
- IteratorDescriptor.cs
- sqlinternaltransaction.cs
- PageClientProxyGenerator.cs
- XmlEncApr2001.cs
- SimpleRecyclingCache.cs
- LookupNode.cs
- FileEnumerator.cs
- AuthenticationSchemesHelper.cs
- CommandValueSerializer.cs
- TemplatedMailWebEventProvider.cs
- UIElementHelper.cs
- FormCollection.cs
- TableRow.cs
- MetadataItemCollectionFactory.cs
- ContextMenu.cs
- IListConverters.cs
- ToolboxItemFilterAttribute.cs
- RelationshipConverter.cs
- VectorAnimationUsingKeyFrames.cs
- ParserHooks.cs
- AmbientProperties.cs
- TransformerInfoCollection.cs
- regiisutil.cs
- ElementAction.cs
- SpeechSynthesizer.cs
- XmlSchemaValidationException.cs
- AddInIpcChannel.cs
- IgnorePropertiesAttribute.cs
- XamlSerializer.cs
- ChunkedMemoryStream.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- TemplateInstanceAttribute.cs
- PointIndependentAnimationStorage.cs
- ActivitiesCollection.cs
- SchemaDeclBase.cs
- HttpApplicationStateWrapper.cs
- PackageDigitalSignatureManager.cs
- X509CertificateValidator.cs
- StylusPointCollection.cs
- DesignerHelpers.cs
- QilChoice.cs
- InfoCardKeyedHashAlgorithm.cs
- SpellerError.cs
- SemaphoreSecurity.cs
- OutputScopeManager.cs
- IndexOutOfRangeException.cs
- TextChangedEventArgs.cs
- _SafeNetHandles.cs
- ToolStripItemTextRenderEventArgs.cs
- RoutedEventHandlerInfo.cs