Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / MessagePartDescription.cs / 1 / MessagePartDescription.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Description { using System; using System.ServiceModel.Channels; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization; using System.ServiceModel.Security; using System.Net.Security; using System.Reflection; using System.Diagnostics; [DebuggerDisplay("Name={name}, Namespace={ns}, Type={Type}, Index={index}}")] public class MessagePartDescription { XmlName name; string ns; int index; Type type; int serializationPosition; ProtectionLevel protectionLevel; bool hasProtectionLevel; MemberInfo memberInfo; private ICustomAttributeProvider additionalAttributesProvider; bool multiple; string baseType; string uniquePartName; public MessagePartDescription(string name, string ns) { if (name == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("name"); this.name = new XmlName(name, true /*isEncoded*/); if (!string.IsNullOrEmpty(ns)) NamingHelper.CheckUriParameter(ns, "ns"); this.ns = ns; } internal MessagePartDescription(MessagePartDescription other) { this.name = other.name; this.ns = other.ns; this.index = other.index; this.type = other.type; this.serializationPosition = other.serializationPosition; this.hasProtectionLevel = other.hasProtectionLevel; this.protectionLevel = other.protectionLevel; this.memberInfo = other.memberInfo; this.multiple = other.multiple; this.additionalAttributesProvider = other.additionalAttributesProvider; this.baseType = other.baseType; this.uniquePartName = other.uniquePartName; } internal virtual MessagePartDescription Clone() { return new MessagePartDescription(this); } internal string BaseType { get { return this.baseType; } set { this.baseType = value; } } internal XmlName XmlName { get { return this.name; } } internal string CodeName { get { return this.name.DecodedName; } } public string Name { get { return this.name.EncodedName; } } public string Namespace { get { return this.ns; } } public Type Type { get { return type; } set { type = value; } } public int Index { get { return index; } set { index = value; } } public bool Multiple { get { return this.multiple; } set { this.multiple = value; } } 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 MemberInfo MemberInfo { get { return memberInfo; } set { memberInfo = value; } } internal ICustomAttributeProvider AdditionalAttributesProvider { get { return additionalAttributesProvider ?? memberInfo; } set { additionalAttributesProvider = value; } } internal string UniquePartName { get { return this.uniquePartName; } set { this.uniquePartName = value; } } internal int SerializationPosition { get { return serializationPosition; } set { serializationPosition = value; } } internal void ResetProtectionLevel() { this.protectionLevel = ProtectionLevel.None; this.hasProtectionLevel = false; } } } // 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
- BufferedReadStream.cs
- JapaneseLunisolarCalendar.cs
- StaticExtensionConverter.cs
- WebServiceTypeData.cs
- objectresult_tresulttype.cs
- WorkflowEventArgs.cs
- CredentialSelector.cs
- SpecialFolderEnumConverter.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- ActivitySurrogate.cs
- UTF8Encoding.cs
- _SingleItemRequestCache.cs
- ELinqQueryState.cs
- basecomparevalidator.cs
- PageRanges.cs
- Comparer.cs
- KnownTypeHelper.cs
- ScriptingProfileServiceSection.cs
- tooltip.cs
- SplineKeyFrames.cs
- OleDbConnection.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- SQLDecimal.cs
- FrameworkContentElement.cs
- GlyphRunDrawing.cs
- CodePageUtils.cs
- GenericIdentity.cs
- ProgressChangedEventArgs.cs
- DataGridViewCellCancelEventArgs.cs
- XappLauncher.cs
- SchemeSettingElementCollection.cs
- RecognizerStateChangedEventArgs.cs
- ModelEditingScope.cs
- Debugger.cs
- Point3DConverter.cs
- MatrixCamera.cs
- XmlSerializableWriter.cs
- BindingNavigator.cs
- EntitySqlQueryState.cs
- StaticExtension.cs
- XmlSchema.cs
- Italic.cs
- LocationChangedEventArgs.cs
- SelectionItemProviderWrapper.cs
- SqlProfileProvider.cs
- RawAppCommandInputReport.cs
- MailAddress.cs
- TypeLibConverter.cs
- ScriptResourceMapping.cs
- ProfilePropertySettings.cs
- DataGridDesigner.cs
- PersonalizationAdministration.cs
- _AutoWebProxyScriptWrapper.cs
- HTMLTextWriter.cs
- FuncTypeConverter.cs
- ExtractorMetadata.cs
- ContentElement.cs
- XmlSchemaSimpleContent.cs
- EmptyTextWriter.cs
- CTreeGenerator.cs
- UserInitiatedNavigationPermission.cs
- WindowClosedEventArgs.cs
- PolicyValidationException.cs
- GridViewColumn.cs
- CheckBoxFlatAdapter.cs
- StateManagedCollection.cs
- AspNetHostingPermission.cs
- XmlSchemaResource.cs
- DBSchemaTable.cs
- CheckoutException.cs
- MetadataFile.cs
- TypedTableHandler.cs
- UpWmlMobileTextWriter.cs
- DataGridViewCellPaintingEventArgs.cs
- CryptographicAttribute.cs
- AbstractDataSvcMapFileLoader.cs
- DesigntimeLicenseContextSerializer.cs
- OleTxTransaction.cs
- Debug.cs
- PasswordBoxAutomationPeer.cs
- NativeActivityMetadata.cs
- OutputCacheSettingsSection.cs
- WebPartCloseVerb.cs
- OrderedHashRepartitionStream.cs
- RequestQueue.cs
- EntityRecordInfo.cs
- ConsoleCancelEventArgs.cs
- JsonCollectionDataContract.cs
- peersecuritysettings.cs
- WebPartChrome.cs
- OperationCanceledException.cs
- XmlLoader.cs
- SystemResources.cs
- HtmlContainerControl.cs
- CodeNamespaceImport.cs
- Simplifier.cs
- DataGridColumnReorderingEventArgs.cs
- BaseParaClient.cs
- SafeRightsManagementEnvironmentHandle.cs
- RepeaterItemEventArgs.cs