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
- QueryOperatorEnumerator.cs
- StylusCaptureWithinProperty.cs
- XmlResolver.cs
- ModelUIElement3D.cs
- DocumentViewerBase.cs
- CollectionViewGroup.cs
- VolatileResourceManager.cs
- SingleSelectRootGridEntry.cs
- ConfigurationPropertyCollection.cs
- StateChangeEvent.cs
- DeploymentSectionCache.cs
- columnmapfactory.cs
- ObjectManager.cs
- ScriptResourceMapping.cs
- Listbox.cs
- AccessibleObject.cs
- SafeNativeMethods.cs
- WeakHashtable.cs
- CacheModeConverter.cs
- ListViewSelectEventArgs.cs
- StringValidator.cs
- ReflectionTypeLoadException.cs
- DeleteHelper.cs
- DataGridTextBox.cs
- BamlMapTable.cs
- MarkupExtensionParser.cs
- SecurityHeaderElementInferenceEngine.cs
- ScriptManagerProxy.cs
- RootBrowserWindowAutomationPeer.cs
- SafeNativeMethodsMilCoreApi.cs
- SplineKeyFrames.cs
- DesignTimeType.cs
- PathStreamGeometryContext.cs
- Query.cs
- ConstructorExpr.cs
- NamedPipeWorkerProcess.cs
- BasicExpressionVisitor.cs
- CreateUserWizard.cs
- SiteMapDataSourceView.cs
- DataGridViewElement.cs
- ADConnectionHelper.cs
- XmlExtensionFunction.cs
- SqlInfoMessageEvent.cs
- EditorPartCollection.cs
- IndexedEnumerable.cs
- WorkflowInstanceRecord.cs
- CodeCommentStatement.cs
- BinaryReader.cs
- ResourceManagerWrapper.cs
- ListItem.cs
- TransportDefaults.cs
- ItemCheckEvent.cs
- XmlSignificantWhitespace.cs
- HitTestParameters3D.cs
- EDesignUtil.cs
- WebSysDescriptionAttribute.cs
- AutoResetEvent.cs
- SystemSounds.cs
- CultureSpecificCharacterBufferRange.cs
- HandlerFactoryWrapper.cs
- RightsManagementPermission.cs
- DirectionalLight.cs
- OletxTransactionManager.cs
- InstanceLockedException.cs
- WebPartCancelEventArgs.cs
- InputLanguageManager.cs
- AssertFilter.cs
- ThreadNeutralSemaphore.cs
- PropertyEmitter.cs
- DataGridViewUtilities.cs
- SQLByteStorage.cs
- WorkflowCreationContext.cs
- AssociationSetEnd.cs
- Literal.cs
- HyperLink.cs
- Facet.cs
- DataGridViewTopLeftHeaderCell.cs
- RemotingSurrogateSelector.cs
- Invariant.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- StringSource.cs
- HelpEvent.cs
- FixedPosition.cs
- LayoutTableCell.cs
- InternalSafeNativeMethods.cs
- TransactionException.cs
- IgnoreFileBuildProvider.cs
- WebPartVerb.cs
- MessageQueuePermissionEntryCollection.cs
- ContextMenuStripGroupCollection.cs
- CreateUserWizard.cs
- Viewport3DAutomationPeer.cs
- RuntimeVariableList.cs
- ZipPackagePart.cs
- Crc32Helper.cs
- GlyphCollection.cs
- Polygon.cs
- ActivityDesigner.cs
- SafeNativeMethods.cs
- OutputCacheSettingsSection.cs