Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataEntity / System / Data / Metadata / EdmError.cs / 1 / EdmError.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Data;
namespace System.Data.Metadata.Edm
{
///
/// This class encapsulates the error information for a generic EDM error.
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
[Serializable]
public abstract class EdmError
{
#region Instance Fields
private string _message = null;
#endregion
#region Constructors
///
/// Constructs a EdmSchemaError object.
///
/// The explanation of the error.
/// The code associated with this error.
/// The severity of the error.
internal EdmError(string message)
{
EntityUtil.CheckStringArgument(message, "message");
_message = message;
}
#endregion
#region Properties
///
/// Gets the error message.
///
public string Message
{
get
{
return _message;
}
}
#endregion
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// @owner [....]
// @backupOwner [....]
//---------------------------------------------------------------------
using System;
using System.Data;
namespace System.Data.Metadata.Edm
{
///
/// This class encapsulates the error information for a generic EDM error.
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Edm")]
[Serializable]
public abstract class EdmError
{
#region Instance Fields
private string _message = null;
#endregion
#region Constructors
///
/// Constructs a EdmSchemaError object.
///
/// The explanation of the error.
/// The code associated with this error.
/// The severity of the error.
internal EdmError(string message)
{
EntityUtil.CheckStringArgument(message, "message");
_message = message;
}
#endregion
#region Properties
///
/// Gets the error message.
///
public string Message
{
get
{
return _message;
}
}
#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
- ListViewCancelEventArgs.cs
- Char.cs
- TypeLibConverter.cs
- SystemIcons.cs
- EntityViewGenerationConstants.cs
- BitmapEffectDrawing.cs
- UpdateManifestForBrowserApplication.cs
- AppSecurityManager.cs
- PeerCollaborationPermission.cs
- EncoderReplacementFallback.cs
- TreeWalker.cs
- SerializationObjectManager.cs
- PolygonHotSpot.cs
- HorizontalAlignConverter.cs
- PropertyItemInternal.cs
- ScriptResourceAttribute.cs
- SystemMulticastIPAddressInformation.cs
- EnumMemberAttribute.cs
- AjaxFrameworkAssemblyAttribute.cs
- LinqDataSourceDisposeEventArgs.cs
- SQLMembershipProvider.cs
- ViewKeyConstraint.cs
- HttpCacheParams.cs
- MD5CryptoServiceProvider.cs
- HttpApplicationFactory.cs
- BatchServiceHost.cs
- WindowsFormsHost.cs
- EmptyReadOnlyDictionaryInternal.cs
- FileRecordSequenceCompletedAsyncResult.cs
- SortDescriptionCollection.cs
- DataKey.cs
- EventLogPermission.cs
- EntityUtil.cs
- ContextTokenTypeConverter.cs
- AnimatedTypeHelpers.cs
- GridViewRow.cs
- CatalogZone.cs
- VisualStyleRenderer.cs
- DropShadowBitmapEffect.cs
- WebExceptionStatus.cs
- OpenTypeLayout.cs
- FileRegion.cs
- BlurBitmapEffect.cs
- ResXBuildProvider.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- MetabaseSettingsIis7.cs
- ZipArchive.cs
- XamlStream.cs
- HandoffBehavior.cs
- DoubleLinkListEnumerator.cs
- DoubleLinkListEnumerator.cs
- XmlSchemaGroup.cs
- StringValidatorAttribute.cs
- webclient.cs
- SqlDataSourceSelectingEventArgs.cs
- Rule.cs
- MaskedTextBoxDesignerActionList.cs
- SpellCheck.cs
- Select.cs
- ResolveCriteria.cs
- VisualBasicSettingsHandler.cs
- ScriptingSectionGroup.cs
- ColorTransform.cs
- FormViewDeleteEventArgs.cs
- _NestedSingleAsyncResult.cs
- StorageAssociationTypeMapping.cs
- _PooledStream.cs
- ConfigurationManagerHelperFactory.cs
- ComplexPropertyEntry.cs
- ConfigurationConverterBase.cs
- XmlQueryTypeFactory.cs
- DataAdapter.cs
- DetailsView.cs
- TargetParameterCountException.cs
- HopperCache.cs
- StyleCollection.cs
- EdmRelationshipRoleAttribute.cs
- SingleStorage.cs
- SQLDateTimeStorage.cs
- CharStorage.cs
- PageCache.cs
- ControlBuilder.cs
- IndentTextWriter.cs
- NumberSubstitution.cs
- VectorValueSerializer.cs
- VariantWrapper.cs
- _ConnectStream.cs
- ListViewGroupItemCollection.cs
- LayoutEditorPart.cs
- EventLogEntryCollection.cs
- ErrorRuntimeConfig.cs
- VirtualPathData.cs
- RetrieveVirtualItemEventArgs.cs
- DeviceContexts.cs
- ErrorInfoXmlDocument.cs
- RefreshInfo.cs
- DataRecordObjectView.cs
- MatrixTransform3D.cs
- BasicAsyncResult.cs
- MetabaseSettings.cs