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
- TrackingWorkflowEventArgs.cs
- WebConfigurationFileMap.cs
- LineServices.cs
- BaseResourcesBuildProvider.cs
- StateRuntime.cs
- List.cs
- WindowsSecurityTokenAuthenticator.cs
- ProjectionNode.cs
- ToggleButtonAutomationPeer.cs
- XmlTextAttribute.cs
- SystemGatewayIPAddressInformation.cs
- ListViewEditEventArgs.cs
- ArraySegment.cs
- ExternalFile.cs
- XamlVector3DCollectionSerializer.cs
- SchemaImporterExtension.cs
- SocketPermission.cs
- VisualTarget.cs
- PresentationAppDomainManager.cs
- QilName.cs
- PropertyChangedEventArgs.cs
- WizardPanelChangingEventArgs.cs
- Handle.cs
- Path.cs
- TableLayoutPanelCellPosition.cs
- AppSettingsExpressionEditor.cs
- FormattedText.cs
- UIElement3DAutomationPeer.cs
- CommonProperties.cs
- ParsedAttributeCollection.cs
- EmissiveMaterial.cs
- OracleLob.cs
- CharAnimationBase.cs
- DecoderFallback.cs
- UriExt.cs
- Light.cs
- QuotedPrintableStream.cs
- MethodImplAttribute.cs
- DataExchangeServiceBinder.cs
- GridItemProviderWrapper.cs
- HyperlinkAutomationPeer.cs
- RetriableClipboard.cs
- ConditionValidator.cs
- CellConstantDomain.cs
- Win32MouseDevice.cs
- SafeProcessHandle.cs
- followingsibling.cs
- DateTimeConverter2.cs
- DesigntimeLicenseContext.cs
- Hashtable.cs
- ValidatedControlConverter.cs
- ProviderIncompatibleException.cs
- LinkClickEvent.cs
- StyleBamlTreeBuilder.cs
- SmtpClient.cs
- OrderedEnumerableRowCollection.cs
- Assembly.cs
- ElementInit.cs
- AccessDataSource.cs
- StandardToolWindows.cs
- XamlContextStack.cs
- HitTestParameters.cs
- ElementHostAutomationPeer.cs
- SystemResources.cs
- StringDictionary.cs
- SystemColorTracker.cs
- HttpPostedFile.cs
- WindowsFormsLinkLabel.cs
- ToolboxItemAttribute.cs
- ReliableChannelFactory.cs
- StreamSecurityUpgradeAcceptor.cs
- WebEvents.cs
- BufferedGraphicsManager.cs
- DataControlImageButton.cs
- SecurityPermission.cs
- CompletedAsyncResult.cs
- linebase.cs
- TrustLevelCollection.cs
- DefinitionBase.cs
- TypeToken.cs
- Trigger.cs
- assemblycache.cs
- ToolboxItemFilterAttribute.cs
- COM2TypeInfoProcessor.cs
- EmbeddedMailObject.cs
- ControlPaint.cs
- PointLight.cs
- XmlSchemaCompilationSettings.cs
- QilTypeChecker.cs
- GifBitmapEncoder.cs
- DispatchChannelSink.cs
- AssociationTypeEmitter.cs
- ConnectionDemuxer.cs
- AspCompat.cs
- ProfileGroupSettings.cs
- ImageAnimator.cs
- ColorTransformHelper.cs
- BindToObject.cs
- UrlMappingsModule.cs
- DrawingState.cs