Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MessageContractMemberAttribute.cs / 1 / MessageContractMemberAttribute.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel { using System.Runtime.Serialization; using System.ServiceModel.Channels; using System.ServiceModel.Description; using System.ServiceModel.Security; using System.Net.Security; public abstract class MessageContractMemberAttribute : Attribute { string name; string ns; bool isNameSetExplicit; bool isNamespaceSetExplicit; ProtectionLevel protectionLevel = ProtectionLevel.None; bool hasProtectionLevel = false; internal const string NamespacePropertyName = "Namespace"; public string Namespace { get { return ns; } set { if (value == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); } if (value.Length > 0) { NamingHelper.CheckUriProperty(value, "Namespace"); } ns = value; isNamespaceSetExplicit = true; } } internal bool IsNamespaceSetExplicit { get { return isNamespaceSetExplicit; } } internal const string NamePropertyName = "Name"; public string Name { get { return name; } set { if (value == null) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("value"); } if (value == string.Empty) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException("value", SR.GetString(SR.SFxNameCannotBeEmpty))); } name = value; isNameSetExplicit = true; } } internal bool IsNameSetExplicit { get { return isNameSetExplicit; } } 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; } } } } // 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
- XmlEntity.cs
- IntegerValidator.cs
- ExpressionTextBox.xaml.cs
- CommandManager.cs
- ScriptMethodAttribute.cs
- XmlSchemaDocumentation.cs
- Events.cs
- PageStatePersister.cs
- OletxEnlistment.cs
- IsolatedStoragePermission.cs
- securestring.cs
- RotateTransform3D.cs
- Selection.cs
- DataKeyArray.cs
- EnvironmentPermission.cs
- TextWriterTraceListener.cs
- codemethodreferenceexpression.cs
- DisplayNameAttribute.cs
- BasePattern.cs
- Int32EqualityComparer.cs
- UrlUtility.cs
- DataTemplateKey.cs
- QueryCacheManager.cs
- EmbeddedMailObject.cs
- ProviderConnectionPoint.cs
- PropertyDescriptor.cs
- DefaultBinder.cs
- SoapSchemaExporter.cs
- BindUriHelper.cs
- MachineKeyConverter.cs
- GlyphInfoList.cs
- SendMessageRecord.cs
- OdbcPermission.cs
- Conditional.cs
- DetailsViewRow.cs
- OuterGlowBitmapEffect.cs
- WizardPanelChangingEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- XPathScanner.cs
- RuleRef.cs
- TransformGroup.cs
- RecognizerBase.cs
- ResourceProviderFactory.cs
- PathTooLongException.cs
- MDIClient.cs
- ListViewItem.cs
- QueryHandler.cs
- SourceFileBuildProvider.cs
- PageThemeCodeDomTreeGenerator.cs
- XPathParser.cs
- DataServiceKeyAttribute.cs
- InvariantComparer.cs
- XmlReaderDelegator.cs
- ZipPackagePart.cs
- TemplateGroupCollection.cs
- BamlResourceDeserializer.cs
- NumericUpDownAcceleration.cs
- ThreadAbortException.cs
- UICuesEvent.cs
- BaseDataBoundControl.cs
- StoreContentChangedEventArgs.cs
- _NetRes.cs
- WindowsSysHeader.cs
- XmlMemberMapping.cs
- NextPreviousPagerField.cs
- StaticExtension.cs
- XmlLinkedNode.cs
- baseaxisquery.cs
- Transactions.cs
- SetStoryboardSpeedRatio.cs
- EmbeddedObject.cs
- SynchronizationLockException.cs
- XmlSchemaSimpleContent.cs
- ConnectionStringsSection.cs
- ConstNode.cs
- Mapping.cs
- Size.cs
- DoWhileDesigner.xaml.cs
- FixUp.cs
- CompilationAssemblyInstallComponent.cs
- DocumentSequence.cs
- COM2IProvidePropertyBuilderHandler.cs
- Button.cs
- CompositeClientFormatter.cs
- EntityDataSourceSelectedEventArgs.cs
- TypeToken.cs
- MULTI_QI.cs
- BStrWrapper.cs
- HttpModuleActionCollection.cs
- EntityClientCacheKey.cs
- RuleDefinitions.cs
- TypeUtil.cs
- RegexTree.cs
- ControlUtil.cs
- SmiContext.cs
- TableColumnCollectionInternal.cs
- ActiveXHost.cs
- SystemWebSectionGroup.cs
- XmlSerializerAssemblyAttribute.cs
- DataGridViewCellErrorTextNeededEventArgs.cs