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
- PropertyGeneratedEventArgs.cs
- XslAstAnalyzer.cs
- XPathSelfQuery.cs
- FixedTextSelectionProcessor.cs
- Keywords.cs
- ColorMatrix.cs
- ClaimSet.cs
- ScrollBarAutomationPeer.cs
- TextElementEnumerator.cs
- ValidationSummaryDesigner.cs
- Avt.cs
- QilFunction.cs
- XmlTextReaderImpl.cs
- TrackingCondition.cs
- WebServicesInteroperability.cs
- ThumbAutomationPeer.cs
- ActivityDesignerAccessibleObject.cs
- XmlCharacterData.cs
- CheckoutException.cs
- BindToObject.cs
- XPathDocumentNavigator.cs
- AsyncStreamReader.cs
- DataBindingCollectionEditor.cs
- Storyboard.cs
- TextEditorTyping.cs
- ComplexPropertyEntry.cs
- NativeMethods.cs
- Vector3DConverter.cs
- COM2PropertyPageUITypeConverter.cs
- SelectionChangedEventArgs.cs
- Vector3DKeyFrameCollection.cs
- InheritanceRules.cs
- PropertyKey.cs
- XmlSchemaInfo.cs
- ClipboardProcessor.cs
- JournalEntry.cs
- ScrollChrome.cs
- DataGridViewSelectedCellCollection.cs
- FunctionMappingTranslator.cs
- DataErrorValidationRule.cs
- NavigationWindow.cs
- ControlIdConverter.cs
- objectquery_tresulttype.cs
- unsafenativemethodsother.cs
- StickyNote.cs
- StrokeFIndices.cs
- EventWaitHandleSecurity.cs
- AtomServiceDocumentSerializer.cs
- ImageKeyConverter.cs
- ObjectItemConventionAssemblyLoader.cs
- _UriTypeConverter.cs
- QueryStringParameter.cs
- DataGridViewImageCell.cs
- NetMsmqBinding.cs
- ButtonAutomationPeer.cs
- LinkedResourceCollection.cs
- ExtensionFile.cs
- NameValuePair.cs
- Rotation3DAnimation.cs
- StructuralCache.cs
- SerializableAttribute.cs
- SqlServer2KCompatibilityCheck.cs
- HttpListenerPrefixCollection.cs
- DictionaryBase.cs
- ContractType.cs
- CaseDesigner.xaml.cs
- ZipIOExtraFieldPaddingElement.cs
- EventDescriptorCollection.cs
- EmbeddedMailObject.cs
- SkinBuilder.cs
- WindowsRegion.cs
- BamlVersionHeader.cs
- RelationshipDetailsRow.cs
- RowUpdatedEventArgs.cs
- SubMenuStyle.cs
- ApplicationServiceManager.cs
- SqlFunctionAttribute.cs
- Faults.cs
- InfocardExtendedInformationEntry.cs
- ToolStripRendererSwitcher.cs
- IxmlLineInfo.cs
- CriticalFinalizerObject.cs
- ConsoleCancelEventArgs.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- WebConfigurationHostFileChange.cs
- MenuItemCollection.cs
- DatagridviewDisplayedBandsData.cs
- ThicknessAnimationBase.cs
- ProgressBar.cs
- ScriptManagerProxy.cs
- FormatterServicesNoSerializableCheck.cs
- PageHandlerFactory.cs
- HtmlEmptyTagControlBuilder.cs
- PropertyGridView.cs
- Deflater.cs
- TracePayload.cs
- RenderCapability.cs
- DiscreteKeyFrames.cs
- BitmapFrameEncode.cs
- HtmlControlPersistable.cs