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
- DetailsViewModeEventArgs.cs
- CorrelationManager.cs
- AttachedAnnotation.cs
- EastAsianLunisolarCalendar.cs
- BrowserCapabilitiesFactory.cs
- ReflectionPermission.cs
- SrgsNameValueTag.cs
- PropertyMapper.cs
- SlotInfo.cs
- Error.cs
- TabItemAutomationPeer.cs
- File.cs
- EventProperty.cs
- DataBinder.cs
- IntranetCredentialPolicy.cs
- MessageBox.cs
- ToolStripHighContrastRenderer.cs
- PassportAuthenticationEventArgs.cs
- ICollection.cs
- FloatSumAggregationOperator.cs
- ConnectionPointCookie.cs
- SafeThreadHandle.cs
- PkcsMisc.cs
- StdValidatorsAndConverters.cs
- Canonicalizers.cs
- JavascriptCallbackMessageInspector.cs
- WindowsListViewGroupSubsetLink.cs
- ServiceHttpHandlerFactory.cs
- DoubleLinkListEnumerator.cs
- QueryAccessibilityHelpEvent.cs
- counter.cs
- LogicalExpr.cs
- TdsParserStaticMethods.cs
- SchemaImporterExtensionElementCollection.cs
- DriveNotFoundException.cs
- Base64Encoder.cs
- DeploymentSection.cs
- RuleSetDialog.Designer.cs
- MouseEvent.cs
- BamlResourceSerializer.cs
- CompositeFontInfo.cs
- TargetInvocationException.cs
- WebBaseEventKeyComparer.cs
- WebPageTraceListener.cs
- SemanticKeyElement.cs
- JoinTreeSlot.cs
- ExpressionBindingCollection.cs
- XmlSchemaAttributeGroup.cs
- DataGridViewRowCancelEventArgs.cs
- Set.cs
- StoreContentChangedEventArgs.cs
- ProcessModuleDesigner.cs
- CodeDirectiveCollection.cs
- XPathNavigatorKeyComparer.cs
- ToolStripDropTargetManager.cs
- SqlFacetAttribute.cs
- WindowsTooltip.cs
- MenuRendererClassic.cs
- AutomationPatternInfo.cs
- Tokenizer.cs
- ContentPresenter.cs
- GlobalEventManager.cs
- InternalBufferOverflowException.cs
- BamlMapTable.cs
- GregorianCalendar.cs
- RuleDefinitions.cs
- MasterPageCodeDomTreeGenerator.cs
- ReadingWritingEntityEventArgs.cs
- AutoCompleteStringCollection.cs
- _MultipleConnectAsync.cs
- Stack.cs
- ConditionalAttribute.cs
- BinaryMessageEncodingElement.cs
- RepeaterItemEventArgs.cs
- QilCloneVisitor.cs
- AspProxy.cs
- SymbolTable.cs
- CodeStatement.cs
- ProfileSettingsCollection.cs
- MessageDecoder.cs
- StateElement.cs
- FrameworkContextData.cs
- EventLogTraceListener.cs
- columnmapkeybuilder.cs
- _Semaphore.cs
- HttpHandler.cs
- StaticFileHandler.cs
- FormViewRow.cs
- NavigationEventArgs.cs
- BaseProcessor.cs
- GenericParameterDataContract.cs
- XhtmlBasicLiteralTextAdapter.cs
- InkCollectionBehavior.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- WebPartsSection.cs
- ThemeableAttribute.cs
- Facet.cs
- UInt32.cs
- Monitor.cs
- ExpressionCopier.cs