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
- TextTreeNode.cs
- SystemNetworkInterface.cs
- SrgsElement.cs
- EntityContainer.cs
- FileDetails.cs
- MetadataArtifactLoaderFile.cs
- MailHeaderInfo.cs
- Task.cs
- Symbol.cs
- UICuesEvent.cs
- BaseDataList.cs
- FloaterBaseParagraph.cs
- ThicknessKeyFrameCollection.cs
- EventDriven.cs
- ValueUtilsSmi.cs
- EventlogProvider.cs
- DiscoveryClientChannelFactory.cs
- EnvironmentPermission.cs
- CompilerParameters.cs
- SearchForVirtualItemEventArgs.cs
- RoutedEventConverter.cs
- XmlSerializerSection.cs
- Matrix3DStack.cs
- Function.cs
- SecurityTokenRequirement.cs
- ChildTable.cs
- ConditionalExpression.cs
- ValidationErrorCollection.cs
- FixedPageAutomationPeer.cs
- ByteBufferPool.cs
- AngleUtil.cs
- Faults.cs
- TrackPoint.cs
- WebPartsPersonalization.cs
- XmlSchemaSequence.cs
- InvokeGenerator.cs
- Queue.cs
- HuffCodec.cs
- IResourceProvider.cs
- TypefaceMetricsCache.cs
- PackWebRequestFactory.cs
- XmlExpressionDumper.cs
- IInstanceTable.cs
- XmlIlGenerator.cs
- InvokeHandlers.cs
- XmlWellformedWriter.cs
- LayoutEditorPart.cs
- StatusBarItem.cs
- BitmapSource.cs
- PermissionListSet.cs
- SchemaImporterExtensionElement.cs
- Stackframe.cs
- CmsUtils.cs
- Control.cs
- AutomationEventArgs.cs
- ListParagraph.cs
- URLIdentityPermission.cs
- RepeaterCommandEventArgs.cs
- ScrollItemProviderWrapper.cs
- TextElementCollection.cs
- EditCommandColumn.cs
- EdmComplexPropertyAttribute.cs
- ProxyAttribute.cs
- IsolatedStorageFile.cs
- DbConnectionPoolOptions.cs
- Peer.cs
- HttpValueCollection.cs
- CodeGenerationManager.cs
- XmlResolver.cs
- AQNBuilder.cs
- FilterableAttribute.cs
- HtmlImage.cs
- HttpModuleCollection.cs
- Dictionary.cs
- ByteViewer.cs
- BamlLocalizableResourceKey.cs
- FieldValue.cs
- Shape.cs
- SingleAnimation.cs
- Tracking.cs
- SystemMulticastIPAddressInformation.cs
- KnownColorTable.cs
- ConcurrentQueue.cs
- IPHostEntry.cs
- SqlSupersetValidator.cs
- ConfigXmlText.cs
- OrderedEnumerableRowCollection.cs
- SignalGate.cs
- cryptoapiTransform.cs
- ParallelLoopState.cs
- ItemsControl.cs
- ClickablePoint.cs
- SpanIndex.cs
- CircleHotSpot.cs
- columnmapkeybuilder.cs
- TextRunCacheImp.cs
- ObjectSerializerFactory.cs
- FlagsAttribute.cs
- DispatcherProcessingDisabled.cs
- SendMailErrorEventArgs.cs