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
- LateBoundBitmapDecoder.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- WindowsListView.cs
- BasicViewGenerator.cs
- BufferModesCollection.cs
- TraceListeners.cs
- TimeSpan.cs
- CrossAppDomainChannel.cs
- CompilationUnit.cs
- Stack.cs
- XPathArrayIterator.cs
- DocumentGridPage.cs
- FormsAuthenticationCredentials.cs
- StateMachineTimers.cs
- ObjectListCommand.cs
- IResourceProvider.cs
- DataGridTableCollection.cs
- Matrix3D.cs
- WebPartMinimizeVerb.cs
- TemplateControlParser.cs
- AuthenticationService.cs
- Section.cs
- ToolboxComponentsCreatingEventArgs.cs
- ClientBuildManager.cs
- CSharpCodeProvider.cs
- MdiWindowListStrip.cs
- ElementHostPropertyMap.cs
- WebResourceAttribute.cs
- CompositeScriptReference.cs
- PrintPreviewGraphics.cs
- ContainerVisual.cs
- DataGridParentRows.cs
- SurrogateChar.cs
- XmlSchemaSimpleTypeUnion.cs
- AutomationProperties.cs
- NativeMethods.cs
- MarginCollapsingState.cs
- MoveSizeWinEventHandler.cs
- VirtualDirectoryMapping.cs
- DataColumnChangeEvent.cs
- WebPartMovingEventArgs.cs
- WebPartManagerDesigner.cs
- SpinLock.cs
- TabItemWrapperAutomationPeer.cs
- DataGrid.cs
- cookiecontainer.cs
- DefaultSettingsSection.cs
- ObjectDataSourceEventArgs.cs
- StartUpEventArgs.cs
- XPathNavigatorReader.cs
- HTTPNotFoundHandler.cs
- DataRelation.cs
- XpsLiterals.cs
- RowToParametersTransformer.cs
- ConfigXmlSignificantWhitespace.cs
- XmlSchemaAnnotated.cs
- QueryResultOp.cs
- CodePageUtils.cs
- ServiceErrorHandler.cs
- PictureBoxDesigner.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlSequenceWriter.cs
- FormsAuthenticationModule.cs
- _SafeNetHandles.cs
- FormViewDeletedEventArgs.cs
- CellParaClient.cs
- XpsSerializationManagerAsync.cs
- InfoCardTrace.cs
- CacheOutputQuery.cs
- DatePickerAutomationPeer.cs
- XmlEncoding.cs
- ViewKeyConstraint.cs
- TextRangeBase.cs
- SchemaCollectionPreprocessor.cs
- ResizeGrip.cs
- DrawingServices.cs
- XmlSchemaValidator.cs
- ListChangedEventArgs.cs
- ScaleTransform.cs
- MobileResource.cs
- IPEndPoint.cs
- SigningCredentials.cs
- SettingsSection.cs
- BufferedReadStream.cs
- RoleManagerModule.cs
- Membership.cs
- ZoneLinkButton.cs
- TraceFilter.cs
- BufferManager.cs
- PropagatorResult.cs
- RegexCapture.cs
- SimpleLine.cs
- EventLogTraceListener.cs
- Rijndael.cs
- GenericTypeParameterBuilder.cs
- ModelItemDictionary.cs
- Tablet.cs
- DashStyle.cs
- SafeSystemMetrics.cs
- WindowsPrincipal.cs