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
- QilValidationVisitor.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ZipIOCentralDirectoryFileHeader.cs
- FormViewInsertedEventArgs.cs
- OdbcConnectionHandle.cs
- MouseGesture.cs
- _ConnectionGroup.cs
- Lasso.cs
- ArrayWithOffset.cs
- EnvelopedPkcs7.cs
- PackWebRequestFactory.cs
- PrimitiveXmlSerializers.cs
- NameHandler.cs
- BindingExpressionBase.cs
- ResourcePermissionBase.cs
- BatchStream.cs
- BaseCodeDomTreeGenerator.cs
- Point3DConverter.cs
- BitmapEffectGroup.cs
- AnimationClockResource.cs
- ReadOnlyCollection.cs
- UniqueIdentifierService.cs
- RawContentTypeMapper.cs
- DataGridState.cs
- ModuleElement.cs
- PageSetupDialog.cs
- ReturnValue.cs
- EditingScopeUndoUnit.cs
- QuaternionAnimation.cs
- ISFClipboardData.cs
- XsdCachingReader.cs
- Rights.cs
- FormatException.cs
- BrowserCapabilitiesFactory.cs
- DBBindings.cs
- ConstructorNeedsTagAttribute.cs
- ApplicationDirectoryMembershipCondition.cs
- Rotation3DAnimation.cs
- ByteFacetDescriptionElement.cs
- RemoteArgument.cs
- DefaultPrintController.cs
- HttpRuntimeSection.cs
- DataMemberFieldEditor.cs
- TogglePattern.cs
- UnsafeNativeMethods.cs
- TargetException.cs
- Exceptions.cs
- SqlTypesSchemaImporter.cs
- TypeResolver.cs
- TraceContextRecord.cs
- FileNameEditor.cs
- ApplyTemplatesAction.cs
- EpmSyndicationContentSerializer.cs
- ThreadInterruptedException.cs
- MethodBody.cs
- AncillaryOps.cs
- CryptoConfig.cs
- basenumberconverter.cs
- IImplicitResourceProvider.cs
- TheQuery.cs
- BaseTreeIterator.cs
- ScriptRef.cs
- AbstractExpressions.cs
- IsolatedStorageFileStream.cs
- ResXResourceWriter.cs
- CachedFontFamily.cs
- TimeZoneInfo.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TypeReference.cs
- PlainXmlDeserializer.cs
- CustomMenuItemCollection.cs
- CheckBox.cs
- Configuration.cs
- DockProviderWrapper.cs
- OleDbSchemaGuid.cs
- ChannelSinkStacks.cs
- ManagementInstaller.cs
- PostBackOptions.cs
- ScrollChangedEventArgs.cs
- WaitHandle.cs
- ClientSettingsProvider.cs
- TextAutomationPeer.cs
- DbgUtil.cs
- DataServiceResponse.cs
- TemplateBindingExtension.cs
- CallContext.cs
- StylusButtonEventArgs.cs
- SerializationSectionGroup.cs
- FileDialogCustomPlacesCollection.cs
- ReflectPropertyDescriptor.cs
- XmlElementList.cs
- ZipQueryOperator.cs
- COM2Enum.cs
- XmlStringTable.cs
- CurrencyManager.cs
- TagMapInfo.cs
- ByValueEqualityComparer.cs
- EncoderNLS.cs
- HelpFileFileNameEditor.cs
- SqlMethodTransformer.cs