Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- assertwrapper.cs
- DBSqlParserColumn.cs
- Formatter.cs
- SystemUnicastIPAddressInformation.cs
- PageFunction.cs
- ComponentCollection.cs
- OrderPreservingPipeliningMergeHelper.cs
- HtmlInputFile.cs
- ToolStripHighContrastRenderer.cs
- GridItemProviderWrapper.cs
- RoutedCommand.cs
- SizeAnimation.cs
- CodeCatchClause.cs
- ClientOptions.cs
- FileUpload.cs
- CSharpCodeProvider.cs
- ThumbAutomationPeer.cs
- GridViewRow.cs
- XmlChoiceIdentifierAttribute.cs
- TextEndOfParagraph.cs
- UnsafeNativeMethods.cs
- ExtractorMetadata.cs
- RenderTargetBitmap.cs
- DefaultTextStore.cs
- ArrayElementGridEntry.cs
- DataGridViewRowConverter.cs
- ReflectionPermission.cs
- AdCreatedEventArgs.cs
- ByteViewer.cs
- HelpProvider.cs
- WindowsContainer.cs
- UrlAuthFailedErrorFormatter.cs
- IndexedEnumerable.cs
- InfiniteIntConverter.cs
- ScaleTransform.cs
- PriorityBindingExpression.cs
- HotSpotCollection.cs
- HttpCookieCollection.cs
- MoveSizeWinEventHandler.cs
- OnOperation.cs
- CodeTypeParameterCollection.cs
- StrokeFIndices.cs
- AlternateViewCollection.cs
- SqlVersion.cs
- StringFreezingAttribute.cs
- DeviceSpecificDesigner.cs
- XmlAttributes.cs
- TypeDescriptionProvider.cs
- HMACSHA256.cs
- TraceSection.cs
- FixedSOMPageElement.cs
- Point.cs
- RequestUriProcessor.cs
- ChangePasswordDesigner.cs
- SafeRightsManagementQueryHandle.cs
- WebPartMinimizeVerb.cs
- TextContainerHelper.cs
- ReflectionHelper.cs
- StrongNameIdentityPermission.cs
- RunWorkerCompletedEventArgs.cs
- TranslateTransform3D.cs
- BaseTemplateBuildProvider.cs
- DataSet.cs
- PassportAuthentication.cs
- XPathNodeInfoAtom.cs
- SharedPersonalizationStateInfo.cs
- ScalarType.cs
- URL.cs
- IssuedTokenServiceCredential.cs
- NeutralResourcesLanguageAttribute.cs
- TraceInternal.cs
- TraversalRequest.cs
- SafeEventLogReadHandle.cs
- PropertyEmitter.cs
- XmlDictionary.cs
- ProxyWebPartConnectionCollection.cs
- GenericsInstances.cs
- SettingsPropertyWrongTypeException.cs
- TableRow.cs
- IndexedString.cs
- HtmlInputPassword.cs
- TreeNodeEventArgs.cs
- ListViewHitTestInfo.cs
- CodeBlockBuilder.cs
- PrintingPermissionAttribute.cs
- SessionParameter.cs
- ServiceDeploymentInfo.cs
- CodeDelegateCreateExpression.cs
- EmbeddedObject.cs
- XmlComplianceUtil.cs
- OptionalRstParameters.cs
- PointAnimation.cs
- TimeSpanSecondsConverter.cs
- StateWorkerRequest.cs
- PageAsyncTaskManager.cs
- XPathParser.cs
- MethodBody.cs
- URLEditor.cs
- ApplicationManager.cs
- DBCommand.cs