Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / Edm / documentation.cs / 1305376 / documentation.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Data.Common; using System.Diagnostics; using System.Globalization; using System.Text; using System.Data.Common.Utils; namespace System.Data.Metadata.Edm { ////// Class representing the Documentation associated with an item /// public sealed class Documentation: MetadataItem { #region Fields private string _summary = ""; private string _longDescription = ""; #endregion #region Constructors ////// Default constructor - primarily created for supporting usage of this Documentation class by SOM. /// internal Documentation() { } #endregion #region Properties ////// Returns the kind of the type /// public override BuiltInTypeKind BuiltInTypeKind { get { return BuiltInTypeKind.Documentation; } } ////// Gets the Summary for this Documentation instance. /// /// public string Summary { get { return _summary; } internal set { if (value != null) _summary = value; else _summary = ""; } } ////// Gets the LongDescription for this Documentation instance. /// /// public string LongDescription { get { return _longDescription; } internal set { if (value != null) _longDescription = value; else _longDescription = ""; } } ////// This property is required to be implemented for inheriting from MetadataItem. As there can be atmost one /// instance of a nested-Documentation, return the constant "Documentation" as it's identity. /// internal override string Identity { get { return "Documentation"; } } ////// Returns true if this Documentation instance contains only null/empty summary and longDescription /// /// public bool IsEmpty { get { if (string.IsNullOrEmpty(_summary) && string.IsNullOrEmpty(_longDescription) ) { return true; } return false; } } #endregion #region Methods ////// public override string ToString() { return _summary; } #endregion } } // 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
- AutomationTextAttribute.cs
- ColumnTypeConverter.cs
- BasicHttpSecurityMode.cs
- XmlSerializerNamespaces.cs
- InstancePersistenceContext.cs
- X509CertificateChain.cs
- DropSource.cs
- TableRowCollection.cs
- StrokeNodeOperations.cs
- SqlCommandSet.cs
- SimpleWebHandlerParser.cs
- DataTableReader.cs
- DoubleAnimationBase.cs
- EntityDataSourceReferenceGroup.cs
- InlineUIContainer.cs
- ZoneIdentityPermission.cs
- FunctionUpdateCommand.cs
- ScalarType.cs
- Invariant.cs
- RMEnrollmentPage2.cs
- BitmapInitialize.cs
- GroupDescription.cs
- DoubleMinMaxAggregationOperator.cs
- BooleanStorage.cs
- TileBrush.cs
- PropertyFilterAttribute.cs
- XmlSchemaDocumentation.cs
- ModelFactory.cs
- XsdValidatingReader.cs
- CompilationUtil.cs
- StringCollection.cs
- HtmlGenericControl.cs
- RowToParametersTransformer.cs
- RectAnimationClockResource.cs
- CollectionViewSource.cs
- WebPartConnectionsCancelEventArgs.cs
- StringArrayEditor.cs
- ThicknessAnimation.cs
- ChtmlTextWriter.cs
- UnionExpr.cs
- Splitter.cs
- Monitor.cs
- TableAdapterManagerNameHandler.cs
- HandleExceptionArgs.cs
- InputBinder.cs
- ClientProxyGenerator.cs
- BinaryObjectWriter.cs
- ProcessHostFactoryHelper.cs
- unsafeIndexingFilterStream.cs
- FilterableAttribute.cs
- MonitoringDescriptionAttribute.cs
- WebPartCatalogCloseVerb.cs
- SecurityHelper.cs
- ColumnClickEvent.cs
- IntegerCollectionEditor.cs
- X509SecurityTokenAuthenticator.cs
- IdentityModelDictionary.cs
- DataGridTextBoxColumn.cs
- DbConnectionStringBuilder.cs
- Internal.cs
- QuestionEventArgs.cs
- FrugalMap.cs
- TypeConverter.cs
- PersistenceMetadataNamespace.cs
- ParsedAttributeCollection.cs
- AudioBase.cs
- DSASignatureDeformatter.cs
- SchemaReference.cs
- MsmqIntegrationBinding.cs
- AllMembershipCondition.cs
- CellCreator.cs
- mansign.cs
- PeerOutputChannel.cs
- Label.cs
- TextEditorParagraphs.cs
- uribuilder.cs
- BindValidator.cs
- CodeIdentifiers.cs
- TemplatedWizardStep.cs
- HandleCollector.cs
- ValueSerializer.cs
- Span.cs
- IBuiltInEvidence.cs
- TextCharacters.cs
- BoundPropertyEntry.cs
- ButtonBase.cs
- ToolStripGripRenderEventArgs.cs
- WebServiceHandlerFactory.cs
- VSWCFServiceContractGenerator.cs
- DbParameterHelper.cs
- PanelStyle.cs
- RowVisual.cs
- DataGridViewCellStyleConverter.cs
- CompilationLock.cs
- webproxy.cs
- FormViewPageEventArgs.cs
- LayoutManager.cs
- TableCell.cs
- SafeHandles.cs
- ConfigXmlReader.cs