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
- Model3DGroup.cs
- FrameSecurityDescriptor.cs
- GeneralTransform3DGroup.cs
- RetriableClipboard.cs
- AssemblyResourceLoader.cs
- Menu.cs
- RegexFCD.cs
- LogicalCallContext.cs
- ForEachDesigner.xaml.cs
- FixedBufferAttribute.cs
- XsltArgumentList.cs
- WeakReferenceKey.cs
- BitmapEffectDrawing.cs
- ValidationResult.cs
- Internal.cs
- SrgsText.cs
- URLIdentityPermission.cs
- ProxySimple.cs
- ConstraintManager.cs
- ItemTypeToolStripMenuItem.cs
- PrinterSettings.cs
- Win32Interop.cs
- ParallelDesigner.cs
- ResourceWriter.cs
- DataObjectSettingDataEventArgs.cs
- ScrollChrome.cs
- WebResponse.cs
- SerialStream.cs
- ScrollBarAutomationPeer.cs
- TypeInformation.cs
- BaseValidator.cs
- Pkcs7Signer.cs
- Visual.cs
- SortedDictionary.cs
- TcpHostedTransportConfiguration.cs
- DeriveBytes.cs
- AxWrapperGen.cs
- ExeConfigurationFileMap.cs
- RefType.cs
- NotifyCollectionChangedEventArgs.cs
- Symbol.cs
- HMACMD5.cs
- FloaterBaseParaClient.cs
- SynchronizedCollection.cs
- Timeline.cs
- InvalidOleVariantTypeException.cs
- SessionStateSection.cs
- IntegerValidator.cs
- ReliableSessionBindingElementImporter.cs
- IndexedEnumerable.cs
- ObjectContext.cs
- QueryStringParameter.cs
- CodeTypeDeclarationCollection.cs
- WebPartConnectVerb.cs
- HostedHttpTransportManager.cs
- XsltCompileContext.cs
- NotifyCollectionChangedEventArgs.cs
- ValidationError.cs
- MissingSatelliteAssemblyException.cs
- ListViewDesigner.cs
- StoreItemCollection.cs
- WebControlAdapter.cs
- TemplateBamlTreeBuilder.cs
- StateWorkerRequest.cs
- PathGradientBrush.cs
- OutputCacheSettings.cs
- EventMap.cs
- OleDbPropertySetGuid.cs
- TextEndOfLine.cs
- DataControlButton.cs
- IPAddress.cs
- CommentAction.cs
- base64Transforms.cs
- IisTraceListener.cs
- UnitControl.cs
- UsernameTokenFactoryCredential.cs
- HostExecutionContextManager.cs
- DllHostInitializer.cs
- FormViewInsertedEventArgs.cs
- Base64Stream.cs
- ListViewSortEventArgs.cs
- TimeSpanValidator.cs
- AppSettingsExpressionEditor.cs
- TraceData.cs
- UserInitiatedRoutedEventPermission.cs
- XmlIlTypeHelper.cs
- DataErrorValidationRule.cs
- TreeNode.cs
- DataGridViewCellStyleChangedEventArgs.cs
- GCHandleCookieTable.cs
- COM2FontConverter.cs
- EventLogPermission.cs
- ListViewContainer.cs
- SerialPinChanges.cs
- ResourceDescriptionAttribute.cs
- CodeThrowExceptionStatement.cs
- WindowsGrip.cs
- TextTreePropertyUndoUnit.cs
- versioninfo.cs
- GridViewColumnHeader.cs