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
- XmlAnyAttributeAttribute.cs
- Policy.cs
- CodeBinaryOperatorExpression.cs
- COM2PropertyDescriptor.cs
- CompositeTypefaceMetrics.cs
- EncryptedXml.cs
- ObjectListFieldCollection.cs
- EmptyStringExpandableObjectConverter.cs
- MouseGestureValueSerializer.cs
- HandleDictionary.cs
- XmlWriterSettings.cs
- LineSegment.cs
- EditorBrowsableAttribute.cs
- CharacterMetrics.cs
- SizeFConverter.cs
- VisualStyleElement.cs
- IDispatchConstantAttribute.cs
- TaskExtensions.cs
- KeyConstraint.cs
- IndividualDeviceConfig.cs
- GetPageNumberCompletedEventArgs.cs
- XmlNodeList.cs
- ClientScriptManagerWrapper.cs
- OutputCacheModule.cs
- ResXBuildProvider.cs
- Vector3D.cs
- XmlILModule.cs
- DataRecord.cs
- UIPermission.cs
- RegexMatch.cs
- StyleReferenceConverter.cs
- CharUnicodeInfo.cs
- DocumentSequenceHighlightLayer.cs
- RewritingPass.cs
- XmlStringTable.cs
- NonParentingControl.cs
- BindToObject.cs
- EntityDataSourceStatementEditor.cs
- WindowsMenu.cs
- DataControlReferenceCollection.cs
- DataServiceRequestOfT.cs
- BamlRecordHelper.cs
- GeometryGroup.cs
- AuthenticateEventArgs.cs
- ProviderMetadataCachedInformation.cs
- ObjectDataSourceStatusEventArgs.cs
- CollectionContainer.cs
- NativeMethods.cs
- connectionpool.cs
- TimeStampChecker.cs
- EmissiveMaterial.cs
- EditorZoneAutoFormat.cs
- safelinkcollection.cs
- PropertyGeneratedEventArgs.cs
- HighContrastHelper.cs
- DbParameterCollectionHelper.cs
- ObjectDataSourceMethodEventArgs.cs
- WrapPanel.cs
- WebPartDescription.cs
- CustomValidator.cs
- WindowClosedEventArgs.cs
- WmpBitmapDecoder.cs
- MissingSatelliteAssemblyException.cs
- StateDesigner.LayoutSelectionGlyph.cs
- WebHeaderCollection.cs
- SelectionItemPattern.cs
- PropertyDescriptor.cs
- ResXResourceWriter.cs
- CloseSequenceResponse.cs
- PersistStreamTypeWrapper.cs
- SafeJobHandle.cs
- OracleCommandSet.cs
- ControlValuePropertyAttribute.cs
- ScrollBarAutomationPeer.cs
- LogWriteRestartAreaState.cs
- SecurityDescriptor.cs
- DocumentSequenceHighlightLayer.cs
- SchemaMerger.cs
- PrintPageEvent.cs
- RuntimeIdentifierPropertyAttribute.cs
- XmlCharCheckingWriter.cs
- XmlCompatibilityReader.cs
- ProfileParameter.cs
- BitmapSourceSafeMILHandle.cs
- SqlTopReducer.cs
- TreeNodeEventArgs.cs
- CombinedGeometry.cs
- SqlDuplicator.cs
- Pen.cs
- CellTreeNode.cs
- ToolStripContainer.cs
- ScrollViewer.cs
- VisualStyleInformation.cs
- WindowsImpersonationContext.cs
- Internal.cs
- SchemaEntity.cs
- BooleanToVisibilityConverter.cs
- ToolStripItemEventArgs.cs
- ApplicationFileParser.cs
- SchemaConstraints.cs