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
- DiscreteKeyFrames.cs
- Rotation3D.cs
- PrePrepareMethodAttribute.cs
- MetadataItemEmitter.cs
- RequestQueryParser.cs
- SqlGenericUtil.cs
- IIS7UserPrincipal.cs
- Condition.cs
- CaseInsensitiveHashCodeProvider.cs
- TemplatedWizardStep.cs
- MLangCodePageEncoding.cs
- StatusInfoItem.cs
- WindowsScrollBarBits.cs
- OracleDateTime.cs
- Sql8ConformanceChecker.cs
- GlobalItem.cs
- SimpleNameService.cs
- controlskin.cs
- TextEditorContextMenu.cs
- LabelDesigner.cs
- VisualBasicSettingsHandler.cs
- StoreAnnotationsMap.cs
- IntSecurity.cs
- MapPathBasedVirtualPathProvider.cs
- EventlogProvider.cs
- UICuesEvent.cs
- CorrelationQueryBehavior.cs
- TemplateControlBuildProvider.cs
- EpmAttributeNameBuilder.cs
- CasesDictionary.cs
- PasswordValidationException.cs
- HtmlEncodedRawTextWriter.cs
- OleDbPropertySetGuid.cs
- X509AudioLogo.cs
- XmlNode.cs
- NegatedCellConstant.cs
- LoadWorkflowByKeyAsyncResult.cs
- Vector.cs
- InteropTrackingRecord.cs
- PathStreamGeometryContext.cs
- LineServicesCallbacks.cs
- BitmapEffectInputConnector.cs
- CodeChecksumPragma.cs
- TripleDESCryptoServiceProvider.cs
- PointAnimation.cs
- ProxyWebPartManager.cs
- XMLSyntaxException.cs
- AssemblyAssociatedContentFileAttribute.cs
- ConfigurationElementCollection.cs
- AssemblyAttributes.cs
- WindowsRichEditRange.cs
- FileCodeGroup.cs
- RegexWriter.cs
- Directory.cs
- XmlSchemaObjectCollection.cs
- XmlName.cs
- ConfigXmlWhitespace.cs
- LinqDataSourceInsertEventArgs.cs
- DataTableNewRowEvent.cs
- HtmlInputCheckBox.cs
- CustomAttribute.cs
- SpeakCompletedEventArgs.cs
- DbProviderConfigurationHandler.cs
- StreamGeometryContext.cs
- SessionIDManager.cs
- SecureEnvironment.cs
- ObjectAssociationEndMapping.cs
- DetailsViewRow.cs
- CopyAction.cs
- MemberPathMap.cs
- TypeUnloadedException.cs
- PipelineComponent.cs
- AliasedSlot.cs
- XmlSchemaExternal.cs
- ProxyHelper.cs
- shaperfactoryquerycacheentry.cs
- NameService.cs
- RewritingPass.cs
- cache.cs
- ManifestBasedResourceGroveler.cs
- ComponentResourceKey.cs
- SurrogateSelector.cs
- ImageMetadata.cs
- DataComponentGenerator.cs
- DispatcherEventArgs.cs
- XmlNodeReader.cs
- SymbolTable.cs
- HwndSourceParameters.cs
- XmlEncApr2001.cs
- Point4D.cs
- PointLightBase.cs
- EntityDataSourceSelectedEventArgs.cs
- WaitHandle.cs
- HyperLinkDesigner.cs
- PeerApplicationLaunchInfo.cs
- ExpressionBuilder.cs
- TraceListener.cs
- FixedSOMTableCell.cs
- ReadOnlyAttribute.cs
- EnumMemberAttribute.cs