Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. 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; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BindingContext.cs
- KeyInstance.cs
- FtpWebResponse.cs
- Query.cs
- ReplyChannelAcceptor.cs
- Missing.cs
- ButtonPopupAdapter.cs
- BeginStoryboard.cs
- SqlBuffer.cs
- SerializationAttributes.cs
- ParameterBuilder.cs
- PointAnimationUsingPath.cs
- ObjectConverter.cs
- ExternalFile.cs
- HandleExceptionArgs.cs
- AutoGeneratedField.cs
- RulePatternOps.cs
- EntityDataSourceWizardForm.cs
- NumberSubstitution.cs
- FileAuthorizationModule.cs
- XmlQualifiedName.cs
- RowSpanVector.cs
- CodePropertyReferenceExpression.cs
- PointConverter.cs
- DataGridViewColumnHeaderCell.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- QilDataSource.cs
- XmlSchemaType.cs
- ThreadExceptionEvent.cs
- XmlImplementation.cs
- Freezable.cs
- StrongNameMembershipCondition.cs
- Metadata.cs
- BinHexEncoder.cs
- SqlUtil.cs
- QueryOutputWriter.cs
- Normalization.cs
- WrapperEqualityComparer.cs
- InertiaExpansionBehavior.cs
- AsmxEndpointPickerExtension.cs
- SecurityTokenAuthenticator.cs
- ResourceType.cs
- DetailsViewUpdateEventArgs.cs
- DispatcherEventArgs.cs
- OrderedHashRepartitionEnumerator.cs
- DetailsViewPagerRow.cs
- DispatcherExceptionEventArgs.cs
- TcpConnectionPoolSettingsElement.cs
- SingleConverter.cs
- PopupRoot.cs
- DbDataRecord.cs
- ThrowHelper.cs
- Query.cs
- Util.cs
- StylusButton.cs
- UnsafeNetInfoNativeMethods.cs
- BinaryFormatterWriter.cs
- ToolStripItemClickedEventArgs.cs
- ResponseBodyWriter.cs
- ChannelCacheSettings.cs
- SqlUDTStorage.cs
- SQLGuidStorage.cs
- ApplicationContext.cs
- Model3D.cs
- RepeatButtonAutomationPeer.cs
- ValidationError.cs
- NumberSubstitution.cs
- SoapIncludeAttribute.cs
- RegexReplacement.cs
- Helpers.cs
- SystemInfo.cs
- MessageBox.cs
- JulianCalendar.cs
- DiagnosticTraceSource.cs
- Int16Converter.cs
- wgx_sdk_version.cs
- IntSecurity.cs
- DictionaryMarkupSerializer.cs
- Stylus.cs
- WindowClosedEventArgs.cs
- NavigationPropertyEmitter.cs
- CredentialCache.cs
- AsyncDataRequest.cs
- Events.cs
- RightsManagementInformation.cs
- NestPullup.cs
- HttpListenerRequest.cs
- SizeAnimation.cs
- CodeMemberEvent.cs
- JpegBitmapDecoder.cs
- TextLine.cs
- HMACSHA512.cs
- XamlFigureLengthSerializer.cs
- EFDataModelProvider.cs
- GridItem.cs
- Converter.cs
- SecurityException.cs
- RequestTimeoutManager.cs
- XmlCountingReader.cs
- SourceElementsCollection.cs