Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Providers / ResourceAssociationSetEnd.cs / 1305376 / ResourceAssociationSetEnd.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Describes an end point of a resource association set. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services.Providers { using System.Diagnostics; ////// Class to describe an end point of a resource association set. /// [DebuggerDisplay("ResourceAssociationSetEnd: {Name}: ({ResourceSet.Name}, {ResourceType.Name}, {ResourceProperty.Name})")] public sealed class ResourceAssociationSetEnd { #region Private Fields ////// Resource set for the association end. /// private readonly ResourceSet resourceSet; ////// Resource type for the association end. /// private readonly ResourceType resourceType; ////// Resource property for the association end. /// private readonly ResourceProperty resourceProperty; #endregion Private Fields #region Constructor ////// Constructs a ResourceAssociationEnd instance. /// /// Resource set of the association end. /// Resource type of the association end. /// Resource property of the association end. public ResourceAssociationSetEnd(ResourceSet resourceSet, ResourceType resourceType, ResourceProperty resourceProperty) { WebUtil.CheckArgumentNull(resourceSet, "resourceSet"); WebUtil.CheckArgumentNull(resourceType, "resourceType"); if (resourceProperty != null && (resourceType.TryResolvePropertyName(resourceProperty.Name) == null || resourceProperty.TypeKind != ResourceTypeKind.EntityType)) { throw new ArgumentException(Strings.ResourceAssociationSetEnd_ResourcePropertyMustBeNavigationPropertyOnResourceType); } if (!resourceSet.ResourceType.IsAssignableFrom(resourceType) && !resourceType.IsAssignableFrom(resourceSet.ResourceType)) { throw new ArgumentException(Strings.ResourceAssociationSetEnd_ResourceTypeMustBeAssignableToResourceSet); } this.resourceSet = resourceSet; this.resourceType = resourceType; // Note that for the TargetEnd, resourceProperty can be null. this.resourceProperty = resourceProperty; } #endregion Constructor #region Properties ////// Resource set for the association end. /// public ResourceSet ResourceSet { [DebuggerStepThrough] get { return this.resourceSet; } } ////// Resource type for the association end. /// public ResourceType ResourceType { [DebuggerStepThrough] get { return this.resourceType; } } ////// Resource property for the association end. /// public ResourceProperty ResourceProperty { [DebuggerStepThrough] get { return this.resourceProperty; } } #endregion Properties } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignSurfaceCollection.cs
- MessageQueuePermissionAttribute.cs
- FilterableAttribute.cs
- ControlSerializer.cs
- EntityCommand.cs
- PathFigureCollection.cs
- PersonalizationProvider.cs
- NavigationPropertyEmitter.cs
- XsltInput.cs
- SqlDependencyListener.cs
- ContravarianceAdapter.cs
- DocumentSchemaValidator.cs
- CheckBoxList.cs
- TextViewSelectionProcessor.cs
- mediaclock.cs
- PageBuildProvider.cs
- SystemKeyConverter.cs
- TripleDES.cs
- IisHelper.cs
- KnownTypeHelper.cs
- HttpServerChannel.cs
- InvalidWMPVersionException.cs
- FunctionDefinition.cs
- EntryIndex.cs
- StructuredTypeEmitter.cs
- MonikerUtility.cs
- CryptographicAttribute.cs
- MouseGestureValueSerializer.cs
- ResXResourceReader.cs
- RelativeSource.cs
- Converter.cs
- SizeLimitedCache.cs
- MachineKeyValidationConverter.cs
- FixedElement.cs
- RequestSecurityTokenResponse.cs
- DocumentSequenceHighlightLayer.cs
- BookmarkUndoUnit.cs
- CrossContextChannel.cs
- WebPartConnectVerb.cs
- ILGenerator.cs
- messageonlyhwndwrapper.cs
- WebCodeGenerator.cs
- RequestFactory.cs
- SecondaryIndex.cs
- ZipIOExtraFieldPaddingElement.cs
- TextTreeTextNode.cs
- CodeStatement.cs
- XmlSchemaAnyAttribute.cs
- MarkupCompiler.cs
- CustomAttribute.cs
- LoginView.cs
- MimeWriter.cs
- FacetChecker.cs
- Helper.cs
- DataGridTemplateColumn.cs
- ConversionContext.cs
- InvokeCompletedEventArgs.cs
- ZipIOFileItemStream.cs
- LocalizabilityAttribute.cs
- SqlCacheDependencyDatabaseCollection.cs
- BezierSegment.cs
- PlatformNotSupportedException.cs
- DataColumnCollection.cs
- SmtpClient.cs
- WebBrowsableAttribute.cs
- CompositeDesignerAccessibleObject.cs
- BaseWebProxyFinder.cs
- IndexExpression.cs
- Emitter.cs
- ReadOnlyAttribute.cs
- WebPartConnectionsCancelEventArgs.cs
- AvtEvent.cs
- CultureInfoConverter.cs
- CollaborationHelperFunctions.cs
- CodeTypeReferenceExpression.cs
- CharConverter.cs
- PenContexts.cs
- CngKeyBlobFormat.cs
- ImportCatalogPart.cs
- Label.cs
- ImageAnimator.cs
- ConfigXmlElement.cs
- PrivateFontCollection.cs
- RepeatButton.cs
- Normalization.cs
- DefaultShape.cs
- SecureEnvironment.cs
- TileBrush.cs
- SamlAuthorizationDecisionClaimResource.cs
- DesignTimeParseData.cs
- WebProxyScriptElement.cs
- Calendar.cs
- TabletCollection.cs
- AddressAccessDeniedException.cs
- DtrList.cs
- XPathScanner.cs
- ProbeMatchesApril2005.cs
- ConnectionPoint.cs
- TextSelection.cs
- DecimalAnimation.cs