Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RedBlackList.cs
- XmlTypeMapping.cs
- DotAtomReader.cs
- M3DUtil.cs
- TextTreeTextBlock.cs
- WindowsAuthenticationModule.cs
- XmlTextReaderImpl.cs
- Vector3D.cs
- QueryCreatedEventArgs.cs
- GroupBox.cs
- TaskbarItemInfo.cs
- SettingsPropertyWrongTypeException.cs
- GridErrorDlg.cs
- ActiveDocumentEvent.cs
- ExcCanonicalXml.cs
- configsystem.cs
- DataControlField.cs
- BrowserCapabilitiesCompiler.cs
- ParseElement.cs
- QilFunction.cs
- WindowsScroll.cs
- ProjectionAnalyzer.cs
- BindingValueChangedEventArgs.cs
- LongMinMaxAggregationOperator.cs
- RsaKeyIdentifierClause.cs
- DnsEndPoint.cs
- AutomationProperties.cs
- DynamicDiscoveryDocument.cs
- HtmlElementCollection.cs
- LiteralSubsegment.cs
- DataListItemCollection.cs
- TextEditorMouse.cs
- CharacterString.cs
- WebProxyScriptElement.cs
- SqlUtils.cs
- Helpers.cs
- MemberAccessException.cs
- EntityClassGenerator.cs
- DataFieldConverter.cs
- CodeExporter.cs
- TdsParserStaticMethods.cs
- WebPartDisplayMode.cs
- BufferedGraphics.cs
- EventWaitHandle.cs
- ToolStripTextBox.cs
- ViewSimplifier.cs
- TextAnchor.cs
- VectorKeyFrameCollection.cs
- PackWebResponse.cs
- TextElement.cs
- SqlClientWrapperSmiStreamChars.cs
- OleDbTransaction.cs
- storepermission.cs
- MemoryMappedViewStream.cs
- TraceContextRecord.cs
- ClassGenerator.cs
- TextPointerBase.cs
- Privilege.cs
- ExpressionConverter.cs
- DBDataPermission.cs
- GeometryModel3D.cs
- CellTreeNode.cs
- ColumnMapVisitor.cs
- CompleteWizardStep.cs
- XmlTextEncoder.cs
- X509WindowsSecurityToken.cs
- ApplicationSecurityManager.cs
- FormView.cs
- documentsequencetextpointer.cs
- XmlSchemaType.cs
- NTAccount.cs
- TraversalRequest.cs
- DesignerView.Commands.cs
- DataGridPagerStyle.cs
- LinqDataSourceInsertEventArgs.cs
- SerialPinChanges.cs
- DataTableReader.cs
- MatrixTransform3D.cs
- AutomationPropertyInfo.cs
- DescendantOverDescendantQuery.cs
- UrlMappingsModule.cs
- ProfileGroupSettingsCollection.cs
- PropertyChangingEventArgs.cs
- Graph.cs
- EdmEntityTypeAttribute.cs
- TdsEnums.cs
- CompilerScope.cs
- DateTimeUtil.cs
- PointAnimationUsingKeyFrames.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- XamlParser.cs
- WindowsGraphicsCacheManager.cs
- ContextMarshalException.cs
- SharedRuntimeState.cs
- GiveFeedbackEventArgs.cs
- Point3DAnimation.cs
- FocusTracker.cs
- ConfigurationFileMap.cs
- SchemaComplexType.cs
- FormCollection.cs