Code:
/ DotNET / DotNET / 8.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
- MenuItemStyleCollection.cs
- ReflectionPermission.cs
- AsymmetricKeyExchangeFormatter.cs
- CreateUserWizard.cs
- DataBindingsDialog.cs
- GeneralTransform.cs
- RSAOAEPKeyExchangeFormatter.cs
- NamedElement.cs
- Track.cs
- Thread.cs
- DbConnectionPoolGroupProviderInfo.cs
- GraphicsPathIterator.cs
- EdgeProfileValidation.cs
- TypeDependencyAttribute.cs
- SignedXml.cs
- ThreadAttributes.cs
- diagnosticsswitches.cs
- NumericUpDownAcceleration.cs
- ConstraintStruct.cs
- TextClipboardData.cs
- ActivityXamlServices.cs
- AttachmentCollection.cs
- JsonQueryStringConverter.cs
- EntityDataSourceChangedEventArgs.cs
- SqlVersion.cs
- SqlGenericUtil.cs
- RawMouseInputReport.cs
- PaginationProgressEventArgs.cs
- WmlPhoneCallAdapter.cs
- TouchesOverProperty.cs
- ScrollViewerAutomationPeer.cs
- ReadWriteObjectLock.cs
- GridViewRow.cs
- ScrollChrome.cs
- ByteStreamGeometryContext.cs
- ComponentTray.cs
- RequiredFieldValidator.cs
- RawStylusInput.cs
- MappingMetadataHelper.cs
- SystemResourceHost.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- SystemTcpStatistics.cs
- RelatedEnd.cs
- DataGridColumnCollectionEditor.cs
- MultiDataTrigger.cs
- SecUtil.cs
- Instrumentation.cs
- StrokeDescriptor.cs
- SortFieldComparer.cs
- FormViewRow.cs
- TdsParser.cs
- SmtpSection.cs
- RNGCryptoServiceProvider.cs
- CustomTypeDescriptor.cs
- ListBoxAutomationPeer.cs
- NativeMethods.cs
- HashCryptoHandle.cs
- TypeGeneratedEventArgs.cs
- PackagePart.cs
- AsyncParams.cs
- UntrustedRecipientException.cs
- IisTraceWebEventProvider.cs
- MergeFailedEvent.cs
- ServiceModelEnumValidatorAttribute.cs
- InternalBase.cs
- SqlProcedureAttribute.cs
- UserControlBuildProvider.cs
- UrlParameterReader.cs
- TitleStyle.cs
- PageStatePersister.cs
- Component.cs
- OLEDB_Enum.cs
- coordinatorscratchpad.cs
- CustomAttributeBuilder.cs
- XmlResolver.cs
- WaitHandle.cs
- SegmentInfo.cs
- DataGridAutoFormat.cs
- XmlSchemaChoice.cs
- ConfigurationValue.cs
- StrokeFIndices.cs
- TextRangeAdaptor.cs
- MimeBasePart.cs
- GridViewAutomationPeer.cs
- SendContent.cs
- wgx_sdk_version.cs
- IndexerNameAttribute.cs
- DefaultValidator.cs
- XamlToRtfParser.cs
- MenuItemAutomationPeer.cs
- XmlnsDictionary.cs
- AuthenticationModuleElement.cs
- StringConverter.cs
- recordstatescratchpad.cs
- Italic.cs
- PrintPageEvent.cs
- FragmentQuery.cs
- OverrideMode.cs
- ProtocolsConfiguration.cs
- DataGridViewBand.cs