Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MessageContractAttribute.cs / 1 / MessageContractAttribute.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.Reflection; using System.ServiceModel.Channels; using System.Net.Security; using System.ServiceModel.Security; using System.ServiceModel.Description; [AttributeUsage(ServiceModelAttributeTargets.MessageContract, AllowMultiple = false)] public sealed class MessageContractAttribute : Attribute { bool isWrapped = true; string wrappedName; string wrappedNs; ProtectionLevel protectionLevel = ProtectionLevel.None; bool hasProtectionLevel = false; internal const string ProtectionLevelPropertyName = "ProtectionLevel"; public ProtectionLevel ProtectionLevel { get { return this.protectionLevel; } set { if (!ProtectionLevelHelper.IsDefined(value)) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value")); this.protectionLevel = value; this.hasProtectionLevel = true; } } public bool HasProtectionLevel { get { return this.hasProtectionLevel; } } public bool IsWrapped { get { return isWrapped; } set { isWrapped = value; } } public string WrapperName { get { return wrappedName; } set { if (value == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); if (value == string.Empty) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SR.GetString(SR.SFxWrapperNameCannotBeEmpty))); wrappedName = value; } } public string WrapperNamespace { get { return wrappedNs; } set { if (!string.IsNullOrEmpty(value)) NamingHelper.CheckUriProperty(value, "WrapperNamespace"); wrappedNs = value; } } } } // 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
- OutOfMemoryException.cs
- XPathAxisIterator.cs
- WindowsListViewItemCheckBox.cs
- ClientConfigurationHost.cs
- RuntimeConfigurationRecord.cs
- Icon.cs
- ApplicationSettingsBase.cs
- PreDigestedSignedInfo.cs
- CreatingCookieEventArgs.cs
- ManagementObjectSearcher.cs
- DelegateSerializationHolder.cs
- ReadOnlyTernaryTree.cs
- SqlTransaction.cs
- DesignTimeXamlWriter.cs
- Avt.cs
- SolidBrush.cs
- Timer.cs
- RegexMatchCollection.cs
- MatrixCamera.cs
- MultiAsyncResult.cs
- ArcSegment.cs
- _StreamFramer.cs
- SqlProviderServices.cs
- ErasingStroke.cs
- ResourceLoader.cs
- KeySpline.cs
- PropertyRecord.cs
- IdleTimeoutMonitor.cs
- StyleXamlParser.cs
- IChannel.cs
- SByteStorage.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ToolStripDropDownMenu.cs
- VirtualPathProvider.cs
- RSAProtectedConfigurationProvider.cs
- FixedSOMSemanticBox.cs
- ComponentSerializationService.cs
- EncodingTable.cs
- PeerTransportListenAddressConverter.cs
- CompensatableTransactionScopeActivityDesigner.cs
- StorageAssociationSetMapping.cs
- ValidationError.cs
- CompiledRegexRunner.cs
- ManagedIStream.cs
- DescendantOverDescendantQuery.cs
- BaseServiceProvider.cs
- DataGridViewColumnHeaderCell.cs
- SafeEventLogWriteHandle.cs
- FilterElement.cs
- _ScatterGatherBuffers.cs
- HttpProfileGroupBase.cs
- DelegatingTypeDescriptionProvider.cs
- ResourceReader.cs
- KeyTimeConverter.cs
- SizeAnimationUsingKeyFrames.cs
- PropertyGridEditorPart.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- MorphHelper.cs
- DynamicContractTypeBuilder.cs
- HwndPanningFeedback.cs
- ThreadSafeList.cs
- IteratorFilter.cs
- DatatypeImplementation.cs
- PointUtil.cs
- CultureSpecificStringDictionary.cs
- XslCompiledTransform.cs
- BufferBuilder.cs
- XmlObjectSerializerReadContextComplex.cs
- ByteViewer.cs
- Panel.cs
- CompressStream.cs
- NativeMethods.cs
- RectangleConverter.cs
- DefaultHttpHandler.cs
- ComMethodElement.cs
- JpegBitmapDecoder.cs
- TableLayout.cs
- coordinator.cs
- PropertyMappingExceptionEventArgs.cs
- UnitySerializationHolder.cs
- ValidatorAttribute.cs
- ProcessProtocolHandler.cs
- DCSafeHandle.cs
- DynamicActionMessageFilter.cs
- KeyedHashAlgorithm.cs
- MasterPageParser.cs
- ChannelOptions.cs
- HotSpotCollection.cs
- FormsAuthenticationModule.cs
- AccessText.cs
- FactoryRecord.cs
- MsmqInputChannelListenerBase.cs
- PolyBezierSegmentFigureLogic.cs
- CLRBindingWorker.cs
- RectAnimation.cs
- _AutoWebProxyScriptHelper.cs
- BufferedWebEventProvider.cs
- TextTabProperties.cs
- WindowsStatic.cs
- WebResourceAttribute.cs