Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PathFigureCollection.cs
- SizeAnimationBase.cs
- HtmlUtf8RawTextWriter.cs
- UIElementAutomationPeer.cs
- coordinator.cs
- GroupItemAutomationPeer.cs
- BitmapCodecInfoInternal.cs
- KeyValueConfigurationElement.cs
- ActivityDesignerAccessibleObject.cs
- XmlBuffer.cs
- XmlEncoding.cs
- HelpEvent.cs
- ComponentSerializationService.cs
- WebPartMenu.cs
- EmptyCollection.cs
- DeploymentExceptionMapper.cs
- PinnedBufferMemoryStream.cs
- HttpCapabilitiesBase.cs
- SimpleExpression.cs
- _Win32.cs
- SecurityTokenResolver.cs
- PackageFilter.cs
- FixedFlowMap.cs
- CallbackDebugBehavior.cs
- securestring.cs
- TimeSpan.cs
- CodeTypeReferenceCollection.cs
- prompt.cs
- DragCompletedEventArgs.cs
- RijndaelManaged.cs
- PhysicalOps.cs
- DataGridViewCellValueEventArgs.cs
- AttributeInfo.cs
- GenerateTemporaryAssemblyTask.cs
- GridViewRowEventArgs.cs
- ExceptionValidationRule.cs
- JoinQueryOperator.cs
- SignatureToken.cs
- RadialGradientBrush.cs
- TypeInitializationException.cs
- BitmapEffectDrawingContextWalker.cs
- NumericPagerField.cs
- ComponentCollection.cs
- ViewKeyConstraint.cs
- AutomationAttributeInfo.cs
- FontStyleConverter.cs
- TdsParser.cs
- ServiceReference.cs
- OrderedDictionary.cs
- ScrollChangedEventArgs.cs
- ObjectListFieldsPage.cs
- DiscoveryClient.cs
- ReturnType.cs
- OptimalBreakSession.cs
- Normalizer.cs
- DetailsViewDeleteEventArgs.cs
- RuleConditionDialog.Designer.cs
- LoginDesignerUtil.cs
- RelatedView.cs
- OutputCacheProfileCollection.cs
- PreProcessInputEventArgs.cs
- ToolStripDropDown.cs
- PlatformNotSupportedException.cs
- XmlLoader.cs
- RSAOAEPKeyExchangeDeformatter.cs
- DiscoveryMessageProperty.cs
- DelegatingConfigHost.cs
- InternalDispatchObject.cs
- TableParagraph.cs
- WebBrowserHelper.cs
- PropertyEmitter.cs
- WebPageTraceListener.cs
- PackWebRequest.cs
- AsyncOperationManager.cs
- FileDialogPermission.cs
- ControlAdapter.cs
- Error.cs
- ContentElement.cs
- EntityContainerAssociationSetEnd.cs
- HtmlControlDesigner.cs
- AssemblyBuilder.cs
- CellConstantDomain.cs
- TypeExtensionConverter.cs
- Types.cs
- MetadataUtilsSmi.cs
- HttpWebResponse.cs
- Set.cs
- ReturnValue.cs
- ParseNumbers.cs
- DbConnectionPool.cs
- AdapterUtil.cs
- Point4DConverter.cs
- HostedTransportConfigurationBase.cs
- AsyncResult.cs
- DispatcherExceptionFilterEventArgs.cs
- UnsafeNativeMethodsCLR.cs
- RepeaterItem.cs
- DataGridViewCellStyleConverter.cs
- UnsafeNetInfoNativeMethods.cs
- _SslStream.cs