Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SecurityElement.cs
- SrgsGrammarCompiler.cs
- ZipIOExtraFieldElement.cs
- ReadOnlyHierarchicalDataSource.cs
- XmlReader.cs
- MsmqQueue.cs
- IncomingWebResponseContext.cs
- OciHandle.cs
- PassportAuthentication.cs
- SystemIcmpV4Statistics.cs
- XamlStyleSerializer.cs
- TabItem.cs
- VariantWrapper.cs
- VBIdentifierDesigner.xaml.cs
- Policy.cs
- CssStyleCollection.cs
- precedingsibling.cs
- EventTask.cs
- KeyInterop.cs
- templategroup.cs
- GenericArgumentsUpdater.cs
- BoundColumn.cs
- DataGridViewBindingCompleteEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- HtmlWindowCollection.cs
- AbstractSvcMapFileLoader.cs
- DesigntimeLicenseContext.cs
- SignatureHelper.cs
- XPathNavigatorKeyComparer.cs
- ObjectStateFormatter.cs
- SerializationException.cs
- CodeBlockBuilder.cs
- VectorCollection.cs
- DataControlFieldCell.cs
- HtmlInputImage.cs
- HttpContextBase.cs
- PostBackOptions.cs
- XmlAttributeAttribute.cs
- MatrixCamera.cs
- RotateTransform3D.cs
- DiagnosticsConfiguration.cs
- CompositeControl.cs
- SafeRegistryHandle.cs
- MailWriter.cs
- AllMembershipCondition.cs
- WorkflowIdleBehavior.cs
- SiteMapNodeItemEventArgs.cs
- ServiceModelSecurityTokenTypes.cs
- MachineKeyConverter.cs
- TextDocumentView.cs
- BookmarkList.cs
- EntityFunctions.cs
- DataRecordInfo.cs
- WindowsTab.cs
- RemotingAttributes.cs
- SpeechAudioFormatInfo.cs
- DataColumnCollection.cs
- StackOverflowException.cs
- Variable.cs
- PackageRelationshipSelector.cs
- DeriveBytes.cs
- ExpandedWrapper.cs
- ProxyGenerationError.cs
- ObjectListCommandsPage.cs
- CharStorage.cs
- BaseAppDomainProtocolHandler.cs
- ProfileSection.cs
- TextBlockAutomationPeer.cs
- CallbackException.cs
- DataGridViewColumnEventArgs.cs
- WebPartDisplayMode.cs
- MessageBox.cs
- AppSettingsExpressionEditor.cs
- EpmSourceTree.cs
- WebPartConnection.cs
- ThreadInterruptedException.cs
- RedirectionProxy.cs
- DllNotFoundException.cs
- SqlUserDefinedTypeAttribute.cs
- LockedAssemblyCache.cs
- GroupBoxAutomationPeer.cs
- FileAuthorizationModule.cs
- HttpHandlersSection.cs
- ConstraintCollection.cs
- SerializationEventsCache.cs
- KnownBoxes.cs
- SystemEvents.cs
- StreamSecurityUpgradeProvider.cs
- UniqueIdentifierService.cs
- XmlQueryOutput.cs
- ContextMenuService.cs
- ListViewTableRow.cs
- SerTrace.cs
- GroupQuery.cs
- RuntimeWrappedException.cs
- SymDocumentType.cs
- FormatConvertedBitmap.cs
- WindowsPrincipal.cs
- TreeNodeCollection.cs
- FreezableOperations.cs