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
- MappingException.cs
- DataViewSetting.cs
- ConnectionManager.cs
- Point3DKeyFrameCollection.cs
- Bold.cs
- VScrollBar.cs
- SoapAttributeOverrides.cs
- ToolboxItemImageConverter.cs
- CharUnicodeInfo.cs
- ProxyFragment.cs
- RegexCharClass.cs
- SerializationInfo.cs
- Int16Animation.cs
- NamedElement.cs
- DLinqColumnProvider.cs
- NamespaceCollection.cs
- RemotingServices.cs
- GridSplitter.cs
- StringUtil.cs
- DispatcherEventArgs.cs
- MiniMapControl.xaml.cs
- ExeContext.cs
- SafeFindHandle.cs
- StringComparer.cs
- XomlCompilerError.cs
- URLBuilder.cs
- HttpListenerRequest.cs
- DataSourceExpressionCollection.cs
- HttpCacheVaryByContentEncodings.cs
- MemberDomainMap.cs
- TreeNodeStyleCollection.cs
- StrongNameUtility.cs
- PartialToken.cs
- TextCollapsingProperties.cs
- ParentUndoUnit.cs
- TabPage.cs
- ResourceReader.cs
- TextServicesCompartmentContext.cs
- OleDbPropertySetGuid.cs
- SmiConnection.cs
- MetadataItemEmitter.cs
- cryptoapiTransform.cs
- UnsafePeerToPeerMethods.cs
- WindowsUpDown.cs
- XmlSchemaSimpleTypeList.cs
- ListViewInsertedEventArgs.cs
- CompilationUtil.cs
- SubMenuStyleCollection.cs
- NativeRecognizer.cs
- Events.cs
- EntitySetBase.cs
- MaskPropertyEditor.cs
- UpdatePanelControlTrigger.cs
- relpropertyhelper.cs
- XmlSchemaAll.cs
- RegionInfo.cs
- EventItfInfo.cs
- VisualTransition.cs
- XmlDomTextWriter.cs
- SmiGettersStream.cs
- Hyperlink.cs
- EventLogPermissionEntryCollection.cs
- BadImageFormatException.cs
- ConfigXmlSignificantWhitespace.cs
- Stream.cs
- SemanticResultKey.cs
- PermissionSet.cs
- CompleteWizardStep.cs
- HandlerFactoryCache.cs
- ExpandedWrapper.cs
- WebPartEditorApplyVerb.cs
- TraceSwitch.cs
- VarRefManager.cs
- WindowsToolbarAsMenu.cs
- ScriptingSectionGroup.cs
- MetadataCache.cs
- GridView.cs
- GradientBrush.cs
- TextTrailingWordEllipsis.cs
- TextRunTypographyProperties.cs
- OdbcCommandBuilder.cs
- ToggleButton.cs
- diagnosticsswitches.cs
- TextSelectionHelper.cs
- SRGSCompiler.cs
- WebHttpSecurityElement.cs
- DataGridViewCellValueEventArgs.cs
- WindowVisualStateTracker.cs
- SeekableReadStream.cs
- RegexFCD.cs
- MeasurementDCInfo.cs
- VisualStyleElement.cs
- LinkUtilities.cs
- BindingList.cs
- RectValueSerializer.cs
- HelloMessageCD1.cs
- TemplateBamlTreeBuilder.cs
- DbModificationClause.cs
- UnaryNode.cs
- ProtocolsConfigurationEntry.cs