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
- EditorZone.cs
- GridViewCommandEventArgs.cs
- FileVersion.cs
- UniqueCodeIdentifierScope.cs
- NumberFormatInfo.cs
- SoapServerProtocol.cs
- HandlerFactoryWrapper.cs
- AssemblyAttributes.cs
- SqlConnection.cs
- FixedFindEngine.cs
- NonParentingControl.cs
- SmiEventSink_DeferedProcessing.cs
- WebPartMovingEventArgs.cs
- OracleConnectionFactory.cs
- DefaultHttpHandler.cs
- QualifiedCellIdBoolean.cs
- InlineCollection.cs
- ObfuscationAttribute.cs
- Application.cs
- ReadOnlyMetadataCollection.cs
- TemplateBindingExpressionConverter.cs
- WindowsSolidBrush.cs
- InvalidWMPVersionException.cs
- UInt32.cs
- ViewManagerAttribute.cs
- ScrollViewer.cs
- ResourceSetExpression.cs
- UnsafePeerToPeerMethods.cs
- RowBinding.cs
- PropertyGrid.cs
- X509Extension.cs
- AsymmetricSignatureDeformatter.cs
- ToolStripSplitButton.cs
- ContentFileHelper.cs
- TiffBitmapDecoder.cs
- Convert.cs
- HostedNamedPipeTransportManager.cs
- ForeignConstraint.cs
- clipboard.cs
- FieldBuilder.cs
- BuildProvidersCompiler.cs
- odbcmetadatacolumnnames.cs
- JsonFormatGeneratorStatics.cs
- KeyGesture.cs
- clipboard.cs
- WebServiceTypeData.cs
- FunctionNode.cs
- ProfileSettings.cs
- SqlPersistenceProviderFactory.cs
- AssertFilter.cs
- PropertyDescriptorCollection.cs
- ActivityCodeDomSerializer.cs
- LambdaCompiler.Lambda.cs
- EntityException.cs
- XmlILConstructAnalyzer.cs
- TabControlToolboxItem.cs
- ApplicationServiceManager.cs
- RegistrySecurity.cs
- XmlRawWriter.cs
- PeerInputChannelListener.cs
- ObjectDataSourceEventArgs.cs
- coordinator.cs
- SecureStringHasher.cs
- RotateTransform.cs
- StaticResourceExtension.cs
- TransformerInfoCollection.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Int64Converter.cs
- StringCollectionMarkupSerializer.cs
- TextSelectionHighlightLayer.cs
- RectangleHotSpot.cs
- Form.cs
- CodeExporter.cs
- ToolStripButton.cs
- ListMarkerLine.cs
- AvTraceFormat.cs
- TemplateBaseAction.cs
- StringStorage.cs
- _DisconnectOverlappedAsyncResult.cs
- PageThemeBuildProvider.cs
- TableSectionStyle.cs
- DocumentDesigner.cs
- XmlUnspecifiedAttribute.cs
- X509ServiceCertificateAuthenticationElement.cs
- TemplateControlBuildProvider.cs
- DecoderReplacementFallback.cs
- XmlAttributeOverrides.cs
- NavigationWindow.cs
- XmlSerializerFormatAttribute.cs
- WebPartChrome.cs
- ISCIIEncoding.cs
- CodeLinePragma.cs
- ThemeDirectoryCompiler.cs
- ViewStateModeByIdAttribute.cs
- CodeValidator.cs
- XhtmlBasicListAdapter.cs
- EventsTab.cs
- ControlCollection.cs
- coordinator.cs
- WorkflowInstanceExtensionCollection.cs