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
- ProtocolsSection.cs
- ObjectDataProvider.cs
- BamlReader.cs
- EncryptedType.cs
- FloatUtil.cs
- DataGridViewCellFormattingEventArgs.cs
- WebHttpSecurityModeHelper.cs
- WebBrowserNavigatedEventHandler.cs
- Expr.cs
- ListViewInsertedEventArgs.cs
- DataTablePropertyDescriptor.cs
- ClientType.cs
- OdbcErrorCollection.cs
- ListCollectionView.cs
- Config.cs
- UniqueIdentifierService.cs
- xdrvalidator.cs
- JsonMessageEncoderFactory.cs
- SBCSCodePageEncoding.cs
- PersistChildrenAttribute.cs
- QuotedPrintableStream.cs
- EmptyStringExpandableObjectConverter.cs
- PinnedBufferMemoryStream.cs
- RefreshInfo.cs
- UserControlParser.cs
- PrefixQName.cs
- CodeVariableDeclarationStatement.cs
- Substitution.cs
- MDIControlStrip.cs
- String.cs
- LightweightCodeGenerator.cs
- StateMachineWorkflowDesigner.cs
- DocumentXPathNavigator.cs
- IDReferencePropertyAttribute.cs
- SqlException.cs
- EncoderReplacementFallback.cs
- Wizard.cs
- ResourceExpressionBuilder.cs
- List.cs
- WsatConfiguration.cs
- ListViewItem.cs
- Encoding.cs
- ColorTransformHelper.cs
- Random.cs
- UnicodeEncoding.cs
- NavigationHelper.cs
- KerberosSecurityTokenParameters.cs
- FactoryGenerator.cs
- XmlnsPrefixAttribute.cs
- IndexedSelectQueryOperator.cs
- GradientBrush.cs
- WebPartDisplayModeEventArgs.cs
- BitmapEffectrendercontext.cs
- DateTimeConverter.cs
- ViewCellRelation.cs
- ConnectionStringsExpressionBuilder.cs
- TableItemProviderWrapper.cs
- RawKeyboardInputReport.cs
- SwitchCase.cs
- GPPOINT.cs
- SqlCommandBuilder.cs
- XmlSchemaComplexContent.cs
- ClosureBinding.cs
- DllNotFoundException.cs
- BooleanProjectedSlot.cs
- PolyQuadraticBezierSegment.cs
- processwaithandle.cs
- RunWorkerCompletedEventArgs.cs
- EventRecordWrittenEventArgs.cs
- ObjectSet.cs
- PropertyStore.cs
- CodeNamespaceCollection.cs
- InvokeMemberBinder.cs
- ApplicationCommands.cs
- UnsafeNetInfoNativeMethods.cs
- CompilerScopeManager.cs
- XPathSingletonIterator.cs
- DescendantQuery.cs
- HttpDictionary.cs
- ListArgumentProvider.cs
- NameValuePermission.cs
- AsyncOperationManager.cs
- WebPartConnectionsDisconnectVerb.cs
- InvalidDataException.cs
- PropertyIdentifier.cs
- complextypematerializer.cs
- ObjectConverter.cs
- MasterPageParser.cs
- ListViewCommandEventArgs.cs
- MessageDecoder.cs
- RelationshipConstraintValidator.cs
- AstTree.cs
- FunctionGenerator.cs
- XmlSchemaAttributeGroupRef.cs
- SqlClientPermission.cs
- DataServices.cs
- StreamingContext.cs
- _NetworkingPerfCounters.cs
- Matrix3D.cs
- DropSourceBehavior.cs