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
- MessageQueueCriteria.cs
- SpeakCompletedEventArgs.cs
- AcceleratedTokenProviderState.cs
- CqlBlock.cs
- ArrayHelper.cs
- TreeViewAutomationPeer.cs
- HTMLTagNameToTypeMapper.cs
- XmlDictionaryWriter.cs
- VirtualPathProvider.cs
- SizeAnimation.cs
- DataGridViewCheckBoxCell.cs
- SourceSwitch.cs
- FunctionDetailsReader.cs
- SerialErrors.cs
- PageParser.cs
- SqlCacheDependencyDatabase.cs
- ModelTreeManager.cs
- DetailsViewDeletedEventArgs.cs
- ReturnType.cs
- URLMembershipCondition.cs
- UpdatePanelControlTrigger.cs
- UnknownWrapper.cs
- Window.cs
- Style.cs
- TempFiles.cs
- SerializationStore.cs
- Connection.cs
- QilVisitor.cs
- CapabilitiesPattern.cs
- Listbox.cs
- XmlSchemaChoice.cs
- WaitHandleCannotBeOpenedException.cs
- SqlLiftWhereClauses.cs
- InkCanvasSelection.cs
- SQLGuidStorage.cs
- ConnectionManagementElementCollection.cs
- DataObjectEventArgs.cs
- TypeDependencyAttribute.cs
- ViewgenContext.cs
- ProtectedConfiguration.cs
- VariableBinder.cs
- UnwrappedTypesXmlSerializerManager.cs
- XmlText.cs
- MultipartIdentifier.cs
- Int64Converter.cs
- ConnectionDemuxer.cs
- _WinHttpWebProxyDataBuilder.cs
- BindingMemberInfo.cs
- AssociatedControlConverter.cs
- XmlDeclaration.cs
- EventProperty.cs
- SerializationAttributes.cs
- SyntaxCheck.cs
- BuildProvidersCompiler.cs
- StateDesigner.cs
- ExpressionList.cs
- ExpressionEditorAttribute.cs
- CompilerWrapper.cs
- ScriptingRoleServiceSection.cs
- PropertyTab.cs
- FontFamilyValueSerializer.cs
- NameTable.cs
- UnsafeNativeMethods.cs
- BaseDataList.cs
- CatalogZoneBase.cs
- ServiceSettingsResponseInfo.cs
- WindowsTitleBar.cs
- DataGrid.cs
- TableCellCollection.cs
- Transform3D.cs
- PresentationSource.cs
- DomNameTable.cs
- WmpBitmapDecoder.cs
- SecurityChannelListener.cs
- coordinator.cs
- DirectoryNotFoundException.cs
- MetadataItemSerializer.cs
- IOThreadTimer.cs
- InvalidWMPVersionException.cs
- ObsoleteAttribute.cs
- ExtensionFile.cs
- DesignerGeometryHelper.cs
- Brush.cs
- AssociatedControlConverter.cs
- QilStrConcat.cs
- CannotUnloadAppDomainException.cs
- BaseValidator.cs
- CultureSpecificStringDictionary.cs
- XmlSerializerSection.cs
- XXXOnTypeBuilderInstantiation.cs
- DataGridCaption.cs
- SecurityTokenResolver.cs
- IndexedEnumerable.cs
- DataGridTable.cs
- LayoutUtils.cs
- ToolStripDropDown.cs
- ToolStripItemDataObject.cs
- TemplateAction.cs
- SqlNotificationRequest.cs
- Button.cs