Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Configuration / MsmqIntegrationSecurityElement.cs / 1 / MsmqIntegrationSecurityElement.cs
//------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------
namespace System.ServiceModel.Configuration
{
using System.Configuration;
using System.ServiceModel.Channels;
using System.Globalization;
using System.Net;
using System.Net.Security;
using System.ServiceModel;
using System.ServiceModel.MsmqIntegration;
using System.ServiceModel.Security;
using System.ComponentModel;
public sealed partial class MsmqIntegrationSecurityElement : ConfigurationElement
{
[ConfigurationProperty(ConfigurationStrings.Mode, DefaultValue = MsmqIntegrationSecurity.DefaultMode)]
[ServiceModelEnumValidator(typeof(MsmqIntegrationSecurityModeHelper))]
public MsmqIntegrationSecurityMode Mode
{
get { return (MsmqIntegrationSecurityMode)base[ConfigurationStrings.Mode]; }
set { base[ConfigurationStrings.Mode] = value; }
}
[ConfigurationProperty(ConfigurationStrings.Transport)]
public MsmqTransportSecurityElement Transport
{
get { return (MsmqTransportSecurityElement)base[ConfigurationStrings.Transport]; }
}
internal void ApplyConfiguration(MsmqIntegrationSecurity security)
{
if (security == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
}
security.Mode = this.Mode;
this.Transport.ApplyConfiguration(security.Transport);
}
internal void InitializeFrom(MsmqIntegrationSecurity security)
{
if (security == null)
{
throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("security");
}
this.Mode = security.Mode;
this.Transport.InitializeFrom(security.Transport);
}
}
}
// 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
- BehaviorEditorPart.cs
- XmlMtomReader.cs
- FontFaceLayoutInfo.cs
- basecomparevalidator.cs
- OpCellTreeNode.cs
- Polygon.cs
- PageThemeParser.cs
- GridViewPageEventArgs.cs
- ProfileSettingsCollection.cs
- Compiler.cs
- TextEditorCharacters.cs
- EventWaitHandle.cs
- DataGridViewColumnCollectionEditor.cs
- MessageQueueConverter.cs
- FieldAccessException.cs
- ErrorFormatterPage.cs
- GatewayIPAddressInformationCollection.cs
- IdentifierCreationService.cs
- XmlIlGenerator.cs
- CopyAttributesAction.cs
- DependentList.cs
- CellPartitioner.cs
- ChunkedMemoryStream.cs
- CollectionBuilder.cs
- X509Chain.cs
- DbProviderSpecificTypePropertyAttribute.cs
- UpDownEvent.cs
- SrgsText.cs
- SingleTagSectionHandler.cs
- Sql8ConformanceChecker.cs
- EncryptedType.cs
- Renderer.cs
- CombinedHttpChannel.cs
- XmlTypeMapping.cs
- WebResourceAttribute.cs
- RtfFormatStack.cs
- WindowsFormsHostPropertyMap.cs
- ContentElementAutomationPeer.cs
- Permission.cs
- InvokeProviderWrapper.cs
- ColumnPropertiesGroup.cs
- Package.cs
- FontCollection.cs
- MobileTextWriter.cs
- _PooledStream.cs
- AccessedThroughPropertyAttribute.cs
- DataGrid.cs
- FrameworkElement.cs
- ReferenceEqualityComparer.cs
- AudioFormatConverter.cs
- ParserStreamGeometryContext.cs
- SqlTriggerAttribute.cs
- SqlVisitor.cs
- HttpDebugHandler.cs
- BaseCAMarshaler.cs
- ParallelLoopState.cs
- ArrangedElement.cs
- SByte.cs
- sqlstateclientmanager.cs
- QueueAccessMode.cs
- RemotingAttributes.cs
- FlowDocumentFormatter.cs
- ViewGenResults.cs
- XmlAnyElementAttribute.cs
- WebPartCatalogAddVerb.cs
- ClientBuildManager.cs
- WebPartExportVerb.cs
- XmlSchemaObjectCollection.cs
- SQLDoubleStorage.cs
- TransformPattern.cs
- WindowsMenu.cs
- NTAccount.cs
- DataTablePropertyDescriptor.cs
- StylusEditingBehavior.cs
- IndexedString.cs
- WebScriptMetadataMessage.cs
- XPathParser.cs
- ObjectConverter.cs
- PresentationUIStyleResources.cs
- ErrorRuntimeConfig.cs
- processwaithandle.cs
- UInt16.cs
- UidManager.cs
- RewritingProcessor.cs
- DeploymentSection.cs
- ProfileSettingsCollection.cs
- CuspData.cs
- EntityStoreSchemaFilterEntry.cs
- CustomErrorsSectionWrapper.cs
- Converter.cs
- ProgressChangedEventArgs.cs
- FileUpload.cs
- EpmTargetTree.cs
- XmlDictionaryString.cs
- ApplicationServicesHostFactory.cs
- NullNotAllowedCollection.cs
- PriorityBindingExpression.cs
- AssemblyGen.cs
- InteropEnvironment.cs
- ListControlBoundActionList.cs