Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataGridViewTextBoxColumn.cs
- BitmapMetadataBlob.cs
- AssemblyResourceLoader.cs
- FlowDocumentReader.cs
- COM2EnumConverter.cs
- WCFServiceClientProxyGenerator.cs
- Point3DAnimationBase.cs
- UnsafeNativeMethodsPenimc.cs
- AffineTransform3D.cs
- QilExpression.cs
- SystemUdpStatistics.cs
- SmtpLoginAuthenticationModule.cs
- PageContentCollection.cs
- AssemblyInfo.cs
- DataRelation.cs
- ConnectionPointGlyph.cs
- FlowDocumentScrollViewer.cs
- DbConnectionPoolCounters.cs
- DataGridViewBand.cs
- COSERVERINFO.cs
- EntityDataSourceChangingEventArgs.cs
- CommonDialog.cs
- CheckBoxPopupAdapter.cs
- HMACSHA256.cs
- ProgressChangedEventArgs.cs
- DocumentEventArgs.cs
- SqlDataSourceEnumerator.cs
- TablePattern.cs
- EventSetter.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SqlGatherConsumedAliases.cs
- PolygonHotSpot.cs
- MessageBox.cs
- CompoundFileIOPermission.cs
- PerfCounters.cs
- Baml2006SchemaContext.cs
- DrawingImage.cs
- RealProxy.cs
- ProvidePropertyAttribute.cs
- XmlDownloadManager.cs
- MemberBinding.cs
- SkipQueryOptionExpression.cs
- ChildrenQuery.cs
- ComponentRenameEvent.cs
- CanonicalXml.cs
- PresentationSource.cs
- TraceHwndHost.cs
- MultitargetUtil.cs
- EdmProviderManifest.cs
- EraserBehavior.cs
- TextRangeSerialization.cs
- SourceLineInfo.cs
- FormatException.cs
- unsafeIndexingFilterStream.cs
- SystemUdpStatistics.cs
- TogglePatternIdentifiers.cs
- ProcessHostFactoryHelper.cs
- Parser.cs
- RegexEditorDialog.cs
- DictionarySectionHandler.cs
- HighlightComponent.cs
- Identifier.cs
- IPGlobalProperties.cs
- QueryContinueDragEventArgs.cs
- ExternalFile.cs
- FileFormatException.cs
- BaseValidator.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- RangeValidator.cs
- LongValidatorAttribute.cs
- AbstractSvcMapFileLoader.cs
- XPathEmptyIterator.cs
- InvokeHandlers.cs
- ActiveXHelper.cs
- TableLayoutPanel.cs
- UriTemplateQueryValue.cs
- ResourceDescriptionAttribute.cs
- Int16Converter.cs
- BitmapEffectDrawingContextWalker.cs
- GenericQueueSurrogate.cs
- Axis.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- AsymmetricKeyExchangeFormatter.cs
- SimpleWorkerRequest.cs
- InvokePattern.cs
- TextEditorTyping.cs
- TextureBrush.cs
- Control.cs
- ListParagraph.cs
- DataGridViewSelectedColumnCollection.cs
- XamlFrame.cs
- UnsafeNativeMethods.cs
- WebBrowserPermission.cs
- ActivityBindForm.Designer.cs
- DropSource.cs
- HttpApplication.cs
- ResolveMatchesMessage11.cs
- SQLSingle.cs
- HiddenFieldPageStatePersister.cs
- DragDropManager.cs