Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / EdmError.cs / 1305376 / 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
- StorageModelBuildProvider.cs
- ReadOnlyNameValueCollection.cs
- HeaderUtility.cs
- RemotingHelper.cs
- ServiceBusyException.cs
- CustomErrorCollection.cs
- TemplateBuilder.cs
- ProviderException.cs
- PrePrepareMethodAttribute.cs
- CheckBoxStandardAdapter.cs
- DataMember.cs
- AsmxEndpointPickerExtension.cs
- IteratorDescriptor.cs
- InkCanvasSelection.cs
- TextServicesCompartmentContext.cs
- EditableTreeList.cs
- FormatVersion.cs
- SemaphoreFullException.cs
- TimeoutException.cs
- ChtmlImageAdapter.cs
- DataControlFieldHeaderCell.cs
- InternalDispatchObject.cs
- XmlSchemaImporter.cs
- LoginView.cs
- SQLInt64.cs
- PartialCachingAttribute.cs
- thaishape.cs
- HTMLTextWriter.cs
- SmtpSection.cs
- WorkflowTransactionOptions.cs
- FunctionImportMapping.cs
- PageAdapter.cs
- EndpointBehaviorElement.cs
- ITreeGenerator.cs
- PropertyKey.cs
- Brush.cs
- ResolvedKeyFrameEntry.cs
- WarningException.cs
- Int16Storage.cs
- Canonicalizers.cs
- ScalarConstant.cs
- StylusEditingBehavior.cs
- DataListItem.cs
- AuthenticatedStream.cs
- TrustManagerMoreInformation.cs
- Mapping.cs
- Models.cs
- LineBreakRecord.cs
- OledbConnectionStringbuilder.cs
- ContextStaticAttribute.cs
- DecimalStorage.cs
- TableDetailsCollection.cs
- Exceptions.cs
- FileStream.cs
- TypeBuilderInstantiation.cs
- BindingsCollection.cs
- TemplateAction.cs
- EditorZone.cs
- PropertyOverridesDialog.cs
- ForAllOperator.cs
- LabelAutomationPeer.cs
- VersionedStream.cs
- DataServiceProviderMethods.cs
- DataGridViewControlCollection.cs
- BlockCollection.cs
- InternalCompensate.cs
- COM2ICategorizePropertiesHandler.cs
- StringTraceRecord.cs
- StrongNameIdentityPermission.cs
- StructuredType.cs
- BoolExpressionVisitors.cs
- CheckBoxList.cs
- XPathChildIterator.cs
- CrossContextChannel.cs
- DuplexChannel.cs
- DataGridHeaderBorder.cs
- RowType.cs
- ISCIIEncoding.cs
- SerializationInfoEnumerator.cs
- HttpHandlerActionCollection.cs
- MethodBuilder.cs
- MailFileEditor.cs
- ProjectionPathSegment.cs
- ListBoxItemWrapperAutomationPeer.cs
- DataSvcMapFile.cs
- WsatServiceAddress.cs
- AxImporter.cs
- TimelineGroup.cs
- SqlUnionizer.cs
- lengthconverter.cs
- CapabilitiesRule.cs
- PageParser.cs
- PerformanceCounterPermissionEntryCollection.cs
- GridViewUpdateEventArgs.cs
- WindowsFormsLinkLabel.cs
- WebPartEditorCancelVerb.cs
- CancellationState.cs
- MetadataReference.cs
- SqlDataSourceStatusEventArgs.cs
- TabItem.cs