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
- SqlErrorCollection.cs
- XmlRootAttribute.cs
- CategoriesDocument.cs
- BaseResourcesBuildProvider.cs
- ExceptionUtil.cs
- TheQuery.cs
- FileDialog_Vista.cs
- WebPartDisplayMode.cs
- UriScheme.cs
- StreamGeometry.cs
- COM2TypeInfoProcessor.cs
- DesignerOptionService.cs
- XmlAnyAttributeAttribute.cs
- CompModSwitches.cs
- HtmlEmptyTagControlBuilder.cs
- ArrangedElementCollection.cs
- OutputCacheModule.cs
- DerivedKeySecurityToken.cs
- RectAnimationClockResource.cs
- ListBoxItemAutomationPeer.cs
- BaseCodeDomTreeGenerator.cs
- NativeMethods.cs
- ETagAttribute.cs
- ETagAttribute.cs
- DeflateStream.cs
- Stack.cs
- ConnectionPool.cs
- BeginEvent.cs
- OdbcHandle.cs
- CapabilitiesPattern.cs
- XmlQualifiedName.cs
- RegexCompiler.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MappingModelBuildProvider.cs
- ApplicationManager.cs
- TextEffectCollection.cs
- ItemChangedEventArgs.cs
- SecurityAlgorithmSuiteConverter.cs
- Stacktrace.cs
- XmlSchemaDocumentation.cs
- TraceSection.cs
- ColumnHeaderCollectionEditor.cs
- ProfileManager.cs
- SQLBytesStorage.cs
- ClassDataContract.cs
- ImmutablePropertyDescriptorGridEntry.cs
- Helpers.cs
- TemplateControlBuildProvider.cs
- OperationResponse.cs
- SoapWriter.cs
- _OverlappedAsyncResult.cs
- AutoGeneratedField.cs
- SqlComparer.cs
- BlurBitmapEffect.cs
- SQLInt16.cs
- MbpInfo.cs
- _ServiceNameStore.cs
- ContentElementAutomationPeer.cs
- WmlLinkAdapter.cs
- SafeNativeMemoryHandle.cs
- MessageBox.cs
- GB18030Encoding.cs
- Transform3D.cs
- DataSourceListEditor.cs
- ExecutedRoutedEventArgs.cs
- TdsParser.cs
- XmlQualifiedName.cs
- RelationshipFixer.cs
- Parameter.cs
- ByteStorage.cs
- SizeKeyFrameCollection.cs
- DataGridViewColumn.cs
- SmtpMail.cs
- SecurityUniqueId.cs
- CompensatableTransactionScopeActivityDesigner.cs
- EditorAttribute.cs
- DataGridViewColumnHeaderCell.cs
- CommonDialog.cs
- LeafCellTreeNode.cs
- DetailsViewUpdatedEventArgs.cs
- AssociatedControlConverter.cs
- NegotiationTokenAuthenticator.cs
- PolicyException.cs
- EventArgs.cs
- IfAction.cs
- RequestResponse.cs
- GridView.cs
- InvalidWMPVersionException.cs
- CircleEase.cs
- Pkcs7Signer.cs
- XamlClipboardData.cs
- HttpsHostedTransportConfiguration.cs
- FixedTextSelectionProcessor.cs
- XmlNavigatorFilter.cs
- BorderGapMaskConverter.cs
- StoryFragments.cs
- RadioButtonBaseAdapter.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- WeakReferenceList.cs
- MessageQueueAccessControlEntry.cs