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
- OpCopier.cs
- MarkerProperties.cs
- CatalogPart.cs
- FixedFindEngine.cs
- QueryStringParameter.cs
- NameValueConfigurationElement.cs
- Version.cs
- DesignColumn.cs
- Calendar.cs
- DebugInfoGenerator.cs
- KnownTypeAttribute.cs
- StylusPointDescription.cs
- SortQuery.cs
- QilFactory.cs
- BindingContext.cs
- RegexNode.cs
- XhtmlConformanceSection.cs
- BamlLocalizabilityResolver.cs
- DispatcherEventArgs.cs
- PaginationProgressEventArgs.cs
- EventLogEntry.cs
- StrokeSerializer.cs
- GeneralTransform3D.cs
- InfoCardProofToken.cs
- OdbcUtils.cs
- SchemaMapping.cs
- httpserverutility.cs
- ContentDisposition.cs
- BitHelper.cs
- FreezableCollection.cs
- ScrollableControl.cs
- KeyValueSerializer.cs
- dbdatarecord.cs
- SmtpException.cs
- JsonStringDataContract.cs
- RequestTimeoutManager.cs
- ListBoxChrome.cs
- EdmType.cs
- CDSCollectionETWBCLProvider.cs
- ToolStripDropDownMenu.cs
- GroupByQueryOperator.cs
- XmlSchemaCollection.cs
- XhtmlBasicListAdapter.cs
- WorkflowOperationErrorHandler.cs
- SpeechEvent.cs
- BamlWriter.cs
- ExtendedPropertyCollection.cs
- SqlTypeConverter.cs
- TdsParserSafeHandles.cs
- XmlSchemaGroupRef.cs
- ExtendedPropertyInfo.cs
- WorkflowServiceAttributesTypeConverter.cs
- GenericWebPart.cs
- EncryptedPackage.cs
- WebPageTraceListener.cs
- SocketException.cs
- WebPartTracker.cs
- HideDisabledControlAdapter.cs
- FileDialogCustomPlacesCollection.cs
- StateManagedCollection.cs
- CommentAction.cs
- StrokeNode.cs
- ObjectStateFormatter.cs
- BrowsableAttribute.cs
- ComplexType.cs
- KeyValueInternalCollection.cs
- Drawing.cs
- PermissionSetEnumerator.cs
- XsltSettings.cs
- MetaModel.cs
- HtmlHistory.cs
- StylusEventArgs.cs
- QilExpression.cs
- DataGridColumnHeadersPresenter.cs
- ErrorFormatter.cs
- Win32.cs
- CqlGenerator.cs
- ReadOnlyDataSource.cs
- KnowledgeBase.cs
- FirstMatchCodeGroup.cs
- XsdDuration.cs
- InputScopeConverter.cs
- SmiEventSink.cs
- EntityDataSourceValidationException.cs
- PrivilegeNotHeldException.cs
- HtmlWindow.cs
- DataGridViewTextBoxEditingControl.cs
- ControlBuilderAttribute.cs
- SecurityTokenAuthenticator.cs
- SqlNodeAnnotation.cs
- TextSpanModifier.cs
- Zone.cs
- NullPackagingPolicy.cs
- ControlBuilderAttribute.cs
- GridViewDeletedEventArgs.cs
- DataGridViewButtonCell.cs
- StringBuilder.cs
- AttributeTableBuilder.cs
- StretchValidation.cs
- TickBar.cs