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
- QilTernary.cs
- TaskDesigner.cs
- TrustManagerMoreInformation.cs
- CreateUserErrorEventArgs.cs
- FunctionMappingTranslator.cs
- Italic.cs
- MsmqIntegrationMessagePool.cs
- IOThreadScheduler.cs
- HttpValueCollection.cs
- WebBrowserSiteBase.cs
- DiscoveryReferences.cs
- FormViewPagerRow.cs
- CodeTypeReference.cs
- BindingUtils.cs
- SpellCheck.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ColumnHeader.cs
- TextServicesManager.cs
- HttpCookiesSection.cs
- SimpleWebHandlerParser.cs
- MetabaseServerConfig.cs
- __ConsoleStream.cs
- MdiWindowListItemConverter.cs
- BaseDataBoundControl.cs
- ResourcePool.cs
- CheckBox.cs
- HighlightOverlayGlyph.cs
- TableItemStyle.cs
- PackageDigitalSignatureManager.cs
- Transform3DGroup.cs
- TimelineGroup.cs
- QilCloneVisitor.cs
- CodeDirectionExpression.cs
- TypeUsage.cs
- Debug.cs
- ArithmeticException.cs
- Event.cs
- Match.cs
- XPathNodePointer.cs
- safex509handles.cs
- EntityFrameworkVersions.cs
- ValidatorCompatibilityHelper.cs
- XpsFixedPageReaderWriter.cs
- HeaderLabel.cs
- HttpResponseInternalWrapper.cs
- columnmapfactory.cs
- WpfXamlType.cs
- DoubleLinkListEnumerator.cs
- TextRangeEditTables.cs
- WasHostedComPlusFactory.cs
- MessageHeaderInfoTraceRecord.cs
- DatePicker.cs
- SerializeAbsoluteContext.cs
- ProviderException.cs
- StateDesignerConnector.cs
- GridViewColumnCollection.cs
- SiteMap.cs
- TargetConverter.cs
- DataListCommandEventArgs.cs
- WhitespaceRule.cs
- SimpleExpression.cs
- SecurityContextSecurityToken.cs
- TargetInvocationException.cs
- ButtonBaseDesigner.cs
- CodeAttributeDeclarationCollection.cs
- QilBinary.cs
- System.Data_BID.cs
- IpcChannel.cs
- UnauthorizedWebPart.cs
- ProcessModelInfo.cs
- DataServiceHostFactory.cs
- IntegerCollectionEditor.cs
- CanExecuteRoutedEventArgs.cs
- HtmlContainerControl.cs
- OracleConnection.cs
- FragmentQuery.cs
- XmlSchemaNotation.cs
- DPTypeDescriptorContext.cs
- ExplicitDiscriminatorMap.cs
- CLRBindingWorker.cs
- ParsedAttributeCollection.cs
- MachineKey.cs
- TagPrefixInfo.cs
- FunctionCommandText.cs
- ExtensionFile.cs
- XhtmlBasicPageAdapter.cs
- UTF32Encoding.cs
- FixedSOMTableCell.cs
- LinqDataView.cs
- UserControlParser.cs
- HMACRIPEMD160.cs
- ReadOnlyDictionary.cs
- AlignmentYValidation.cs
- ConfigXmlCDataSection.cs
- SqlFacetAttribute.cs
- SystemEvents.cs
- CodePrimitiveExpression.cs
- UpdateDelegates.Generated.cs
- InstanceKey.cs
- input.cs