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
- TextRenderingModeValidation.cs
- MethodImplAttribute.cs
- XhtmlBasicFormAdapter.cs
- DBConnectionString.cs
- ServerReliableChannelBinder.cs
- ClientProxyGenerator.cs
- CompiledIdentityConstraint.cs
- QilIterator.cs
- UrlMappingCollection.cs
- X509ClientCertificateAuthentication.cs
- GeometryModel3D.cs
- CheckBox.cs
- BooleanAnimationBase.cs
- SoapExtensionReflector.cs
- IntersectQueryOperator.cs
- AppDomainAttributes.cs
- CodeSnippetStatement.cs
- ByteStack.cs
- PeerHelpers.cs
- SmtpReplyReader.cs
- PassportPrincipal.cs
- FileNotFoundException.cs
- StringExpressionSet.cs
- QilLoop.cs
- SessionState.cs
- InteropExecutor.cs
- MetroSerializationManager.cs
- InsufficientMemoryException.cs
- WebPart.cs
- DataControlLinkButton.cs
- DataGridViewCellValueEventArgs.cs
- ObfuscateAssemblyAttribute.cs
- ComponentChangingEvent.cs
- EnumConverter.cs
- ListItemCollection.cs
- RelationshipDetailsRow.cs
- TabPanel.cs
- PageOutputQuality.cs
- PersonalizationProvider.cs
- ToolStripSeparator.cs
- Brush.cs
- SqlHelper.cs
- ToolStripDropDown.cs
- UniqueConstraint.cs
- _UriTypeConverter.cs
- DiscoveryClientOutputChannel.cs
- TableTextElementCollectionInternal.cs
- Decorator.cs
- OleDbDataAdapter.cs
- ResourcePermissionBase.cs
- ChannelBuilder.cs
- StrongNameIdentityPermission.cs
- SymbolEqualComparer.cs
- WorkflowValidationFailedException.cs
- IList.cs
- DynamicAttribute.cs
- UIPropertyMetadata.cs
- HtmlGenericControl.cs
- UriScheme.cs
- QueryGenerator.cs
- RedirectionProxy.cs
- Msec.cs
- DataPagerFieldItem.cs
- CounterCreationDataCollection.cs
- XomlCompilerError.cs
- HtmlTernaryTree.cs
- ComponentResourceKey.cs
- CompilerInfo.cs
- WebRequestModuleElementCollection.cs
- WindowsGraphicsWrapper.cs
- DateTimeFormat.cs
- DictionaryBase.cs
- XmlSchemaElement.cs
- CanonicalizationDriver.cs
- Substitution.cs
- ISAPIApplicationHost.cs
- SchemaNotation.cs
- DLinqDataModelProvider.cs
- XmlSerializerOperationGenerator.cs
- IDispatchConstantAttribute.cs
- FormParameter.cs
- ZoneLinkButton.cs
- Attributes.cs
- Conditional.cs
- QilXmlReader.cs
- LocalizableAttribute.cs
- _OverlappedAsyncResult.cs
- FocusWithinProperty.cs
- ServiceBehaviorElement.cs
- EventDescriptor.cs
- WebConfigurationHost.cs
- InstanceKeyCompleteException.cs
- ProxyHwnd.cs
- EnumValidator.cs
- UInt16Storage.cs
- CustomErrorsSectionWrapper.cs
- XmlAttribute.cs
- DoneReceivingAsyncResult.cs
- RootBrowserWindowProxy.cs
- EventLogPermissionHolder.cs