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
- SqlPersonalizationProvider.cs
- ObjectItemNoOpAssemblyLoader.cs
- FragmentQueryProcessor.cs
- OciLobLocator.cs
- AudioDeviceOut.cs
- FontWeights.cs
- Utilities.cs
- CodeMemberEvent.cs
- ColumnResizeAdorner.cs
- ResolvedKeyFrameEntry.cs
- AutomationFocusChangedEventArgs.cs
- DelayedRegex.cs
- _IPv4Address.cs
- SymLanguageVendor.cs
- WebServiceErrorEvent.cs
- BindingsCollection.cs
- DoubleAnimation.cs
- NumericUpDownAccelerationCollection.cs
- RelationshipEndCollection.cs
- InstanceKey.cs
- Size.cs
- FtpCachePolicyElement.cs
- RowUpdatedEventArgs.cs
- RootBrowserWindow.cs
- HttpApplication.cs
- AssemblyUtil.cs
- RectAnimation.cs
- LineGeometry.cs
- iisPickupDirectory.cs
- XNodeSchemaApplier.cs
- SelectionEditingBehavior.cs
- ByteFacetDescriptionElement.cs
- ComponentCollection.cs
- VideoDrawing.cs
- SelectionEditingBehavior.cs
- PenCursorManager.cs
- CommandBinding.cs
- CodeMemberMethod.cs
- TextFormatterContext.cs
- NonVisualControlAttribute.cs
- KoreanCalendar.cs
- OverrideMode.cs
- SqlCacheDependencyDatabaseCollection.cs
- AnchoredBlock.cs
- Span.cs
- RoleGroup.cs
- BinaryExpressionHelper.cs
- LocalizationComments.cs
- StreamingContext.cs
- Dispatcher.cs
- GeneralTransform3DCollection.cs
- ResolveNameEventArgs.cs
- PersistenceTypeAttribute.cs
- XmlCustomFormatter.cs
- WorkflowElementDialogWindow.xaml.cs
- ObjectContextServiceProvider.cs
- StringToken.cs
- Pair.cs
- objectresult_tresulttype.cs
- SqlRemoveConstantOrderBy.cs
- SchemaManager.cs
- SafeBitVector32.cs
- ListBase.cs
- WorkflowInstance.cs
- EncodedStreamFactory.cs
- ValidationSummary.cs
- EntityDataSourceContextCreatedEventArgs.cs
- MissingMethodException.cs
- BaseAsyncResult.cs
- RegexStringValidator.cs
- AddInEnvironment.cs
- PackWebRequest.cs
- ToolStripHighContrastRenderer.cs
- EntityDataSourceSelectedEventArgs.cs
- XmlQueryContext.cs
- DefaultPrintController.cs
- JobPageOrder.cs
- XmlSerializerNamespaces.cs
- FrugalMap.cs
- SafeHandle.cs
- XmlSerializerNamespaces.cs
- DesignerObjectListAdapter.cs
- DesignerRegionCollection.cs
- AstTree.cs
- ResourceDescriptionAttribute.cs
- ParentControlDesigner.cs
- ConfigurationSectionGroupCollection.cs
- DataGridViewCellStyle.cs
- ReachPageContentCollectionSerializerAsync.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- XamlPathDataSerializer.cs
- QuotedStringFormatReader.cs
- XmlText.cs
- ToolboxBitmapAttribute.cs
- TraceContextRecord.cs
- MarkerProperties.cs
- sqlpipe.cs
- SchemaTableColumn.cs
- TraceSection.cs
- BasicExpressionVisitor.cs