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
- NetPipeSection.cs
- IfAction.cs
- TextBoxAutoCompleteSourceConverter.cs
- HttpWrapper.cs
- CanonicalFontFamilyReference.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- BitmapEffect.cs
- DrawingCollection.cs
- AxisAngleRotation3D.cs
- MetadataElement.cs
- PackWebResponse.cs
- HwndSourceParameters.cs
- StylusDevice.cs
- BamlBinaryReader.cs
- KnownColorTable.cs
- ReadOnlyTernaryTree.cs
- WebPartConnectionsConfigureVerb.cs
- CompositeScriptReference.cs
- ActiveXSerializer.cs
- SortDescription.cs
- Paragraph.cs
- CustomCredentialPolicy.cs
- CriticalExceptions.cs
- SafeThreadHandle.cs
- RowSpanVector.cs
- ContainerUIElement3D.cs
- CodeCatchClauseCollection.cs
- TypeDescriptionProviderAttribute.cs
- ItemsPanelTemplate.cs
- _LocalDataStoreMgr.cs
- EntitySetBaseCollection.cs
- CompilerGeneratedAttribute.cs
- ResourceWriter.cs
- WindowsFormsLinkLabel.cs
- SelectionProcessor.cs
- Executor.cs
- WebBrowserPermission.cs
- TemplatePagerField.cs
- Label.cs
- FileSystemEventArgs.cs
- SafeHandles.cs
- TextTabProperties.cs
- MailAddress.cs
- CodeEventReferenceExpression.cs
- Formatter.cs
- BinHexDecoder.cs
- PartialCachingControl.cs
- Perspective.cs
- TextDocumentView.cs
- TextRangeEditTables.cs
- HttpListener.cs
- TileBrush.cs
- ProfileSettings.cs
- Attributes.cs
- SystemColors.cs
- MediaElementAutomationPeer.cs
- ComponentDispatcher.cs
- RoleProviderPrincipal.cs
- Transform3D.cs
- IIS7UserPrincipal.cs
- TreeSet.cs
- TraceSection.cs
- LineSegment.cs
- InternalException.cs
- SortAction.cs
- GridViewCommandEventArgs.cs
- TypeGenericEnumerableViewSchema.cs
- RetriableClipboard.cs
- StylusPointProperty.cs
- ScrollBarAutomationPeer.cs
- DLinqTableProvider.cs
- Vector3DValueSerializer.cs
- TreeNodeCollection.cs
- XmlCharCheckingReader.cs
- ServiceDescriptions.cs
- TabletDevice.cs
- XmlSerializer.cs
- TimeoutTimer.cs
- PolicyException.cs
- StateWorkerRequest.cs
- CustomAttributeSerializer.cs
- UserControlParser.cs
- PaperSize.cs
- LayoutTableCell.cs
- CompiledQuery.cs
- SourceFilter.cs
- PagesSection.cs
- DoWorkEventArgs.cs
- SubpageParaClient.cs
- Comparer.cs
- Int16.cs
- ToolStripItemRenderEventArgs.cs
- ConnectionInterfaceCollection.cs
- CodeVariableReferenceExpression.cs
- ComboBox.cs
- ViewPort3D.cs
- AxisAngleRotation3D.cs
- SinglePhaseEnlistment.cs
- _CommandStream.cs
- BufferedOutputStream.cs